Click here to Skip to main content
15,887,683 members
Home / Discussions / Database
   

Database

 
Questionbackup from a specific table Pin
reza assar26-Sep-08 2:59
reza assar26-Sep-08 2:59 
AnswerRe: backup from a specific table Pin
Tim Carmichael26-Sep-08 5:49
Tim Carmichael26-Sep-08 5:49 
AnswerRe: backup from a specific table Pin
Wendelius26-Sep-08 6:45
mentorWendelius26-Sep-08 6:45 
Questionconnect with application using ado Pin
reza assar26-Sep-08 2:55
reza assar26-Sep-08 2:55 
AnswerRe: connect with application using ado Pin
Ashfield26-Sep-08 3:21
Ashfield26-Sep-08 3:21 
QuestionAbout + operator for string Pin
TALHAKOSEN26-Sep-08 1:31
TALHAKOSEN26-Sep-08 1:31 
AnswerRe: About + operator for string Pin
Ashfield26-Sep-08 1:49
Ashfield26-Sep-08 1:49 
GeneralRe: About + operator for string Pin
TALHAKOSEN26-Sep-08 1:54
TALHAKOSEN26-Sep-08 1:54 
ITS THE CODE BELOW

DECLARE ankcev_cursor SCROLL CURSOR FOR
SELECT KULLANICINO FROM AnketCevap WHERE ANKETID='7'
OPEN ankcev_cursor


declare @vSQL varchar(1000), @numrows int
DECLARE @SNO INT;
DECLARE @KNO INT;
DECLARE @SONUC VARCHAR(10);
SET @SNO = 10;

WHILE @SNO < 83
BEGIN

FETCH NEXT FROM ankcev_cursor INTO @KNO

WHILE @@FETCH_STATUS = 0
BEGIN

SET @SONUC=(SELECT CEVAPSIK FROM ANKETCEVAP WHERE ANKETID='7' AND
KULLANICINO = @KNO AND SORUNO=@SNO)

SELECT @vSQL = 'INSERT INTO #rapor(S'+ convert(varchar, @SNO) + ')'' VALUES('' '+ @sonuc+ ' '')'

Execute (@vSQL)
FETCH NEXT FROM ankcev_cursor INTO @KNO

END

SET @SNO=@SNO+1;

END



CLOSE ankcev_cursor
DEALLOCATE ankcev_cursor

Sampiyon FENERBAHCE

GeneralRe: About + operator for string Pin
Ashfield26-Sep-08 2:18
Ashfield26-Sep-08 2:18 
GeneralRe: About + operator for string Pin
TALHAKOSEN26-Sep-08 2:22
TALHAKOSEN26-Sep-08 2:22 
GeneralRe: About + operator for string Pin
Ashfield26-Sep-08 3:18
Ashfield26-Sep-08 3:18 
Generalone more )) pls variable doesnt increase ??? Pin
TALHAKOSEN26-Sep-08 3:56
TALHAKOSEN26-Sep-08 3:56 
GeneralRe: one more )) pls variable doesnt increase ??? Pin
Ashfield26-Sep-08 4:25
Ashfield26-Sep-08 4:25 
GeneralRe: one more )) pls variable doesnt increase ??? Pin
TALHAKOSEN26-Sep-08 4:38
TALHAKOSEN26-Sep-08 4:38 
GeneralRe: one more )) pls variable doesnt increase ??? Pin
Ashfield26-Sep-08 8:18
Ashfield26-Sep-08 8:18 
QuestionSlow Random Products Pin
Heylow26-Sep-08 1:27
Heylow26-Sep-08 1:27 
AnswerRe: Slow Random Products Pin
SimulationofSai26-Sep-08 1:34
SimulationofSai26-Sep-08 1:34 
AnswerRe: Slow Random Products Pin
Ashfield26-Sep-08 1:58
Ashfield26-Sep-08 1:58 
QuestionAbout reporting Pin
TALHAKOSEN25-Sep-08 22:49
TALHAKOSEN25-Sep-08 22:49 
AnswerRe: About reporting Pin
HemJoshi25-Sep-08 23:10
HemJoshi25-Sep-08 23:10 
GeneralRe: About reporting Pin
TALHAKOSEN25-Sep-08 23:16
TALHAKOSEN25-Sep-08 23:16 
QuestionHow can i change name of variable ? Pin
TALHAKOSEN25-Sep-08 22:30
TALHAKOSEN25-Sep-08 22:30 
AnswerRe: How can i change name of variable ? Pin
Ashfield25-Sep-08 22:40
Ashfield25-Sep-08 22:40 
AnswerRe: How can i change name of variable ? Pin
Wendelius26-Sep-08 6:48
mentorWendelius26-Sep-08 6:48 
Questionmysql and Ado.net Pin
Christopher Clarke25-Sep-08 15:42
Christopher Clarke25-Sep-08 15:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.