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

Database

 
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 
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 
declare @vSQL varchar(1000)
DECLARE @SNO INT;
DECLARE @SNO2 INT;
DECLARE @KNO INT;
DECLARE @SONUC VARCHAR(10);
SET @SNO = 10;
SET @SNO2 = 10;


WHILE @SNO < 83
BEGIN
DECLARE ankcev_cursor SCROLL CURSOR FOR
SELECT KULLANICINO FROM AnketCevap WHERE ANKETID='7'
OPEN ankcev_cursor

FETCH NEXT FROM ankcev_cursor INTO @KNO

WHILE @@FETCH_STATUS = 0
BEGIN
--SELECT CEVAPSIK FROM ANKETCEVAP WHERE ANKETID='7' AND KULLANICINO = @KNO AND SORUNO=@SNO
SET @SONUC=(SELECT CEVAPSIK FROM ANKETCEVAP WHERE ANKETID='7' AND KULLANICINO = @KNO AND SORUNO=@SNO)
SELECT @vSQL = 'UPDATE #rapor SET S'+ convert(varchar, @SNO)+'='''+ convert(varchar, @SONUC)+''' where ID='''+ convert(varchar, @KNO) + ''''
Execute (@vSQL)
FETCH NEXT FROM ankcev_cursor INTO @KNO
END

CLOSE ankcev_cursor
DEALLOCATE ankcev_cursor
SET @SNO = @SNO+1;
END

PRINT @vSQL
PRINT @SNO ------ALWAYS WRITE S10 why stay same value ????

Sampiyon FENERBAHCE

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 
AnswerRe: mysql and Ado.net Pin
John_Adams25-Sep-08 20:50
John_Adams25-Sep-08 20:50 
QuestionConverting datetime format to only time format in one column Pin
notes4we25-Sep-08 9:24
notes4we25-Sep-08 9:24 
AnswerRe: Converting datetime format to only time format in one column Pin
NeverHeardOfMe25-Sep-08 10:07
NeverHeardOfMe25-Sep-08 10:07 
GeneralRe: Converting datetime format to only time format in one column Pin
notes4we26-Sep-08 3:44
notes4we26-Sep-08 3:44 

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.