Click here to Skip to main content
15,891,033 members
Home / Discussions / Database
   

Database

 
AnswerRe: MsSQL to MySQL Pin
Jerry Hammond19-Jun-08 18:31
Jerry Hammond19-Jun-08 18:31 
Questionhow to add database Pin
SSN18-Jun-08 0:40
SSN18-Jun-08 0:40 
AnswerRe: how to add database Pin
Mike Dimmick18-Jun-08 2:17
Mike Dimmick18-Jun-08 2:17 
QuestionCommunication between Sql Server2005 and MS Access2007? Pin
Vicky2Galaxy18-Jun-08 0:13
Vicky2Galaxy18-Jun-08 0:13 
QuestionHandy information for any Windows user who customises Regional Settings Pin
Nigel Mackay17-Jun-08 23:26
Nigel Mackay17-Jun-08 23:26 
AnswerRe: Handy information for any Windows user who customises Regional Settings Pin
Giorgi Dalakishvili17-Jun-08 23:45
mentorGiorgi Dalakishvili17-Jun-08 23:45 
AnswerRe: Handy information for any Windows user who customises Regional Settings Pin
Alsvha18-Jun-08 0:50
Alsvha18-Jun-08 0:50 
Questionselect values from a table dyunamically in Stored procedure Pin
Pranav Thakur17-Jun-08 22:06
Pranav Thakur17-Jun-08 22:06 
Hi,

I have created a "test" table having 4 column Q1,Q2,Q3 and Q4 with values one,two,three,and four respectively. Please refer the code below:-

Declare @loopId int
set @loopId=1
Declare @vr varchar(100)
declare @variable varchar(100)

while @loopId<=4
begin

set @vr='Q'+''+Convert(varchar,@loopId)+''
Select @variable=@vr from test
print(@variable )
set @loopId=@loopId+1

end

In the above code I am printing the values of each column of table "test" one by one.But the out put of the above code is
Q1
Q2
Q3
Q4

but i want to have the values not column name.This is a sample code which I will be using in one of my stored proc.What wrong I am doing.Please help.
AnswerRe: select values from a table dyunamically in Stored procedure Pin
dan!sh 17-Jun-08 22:19
professional dan!sh 17-Jun-08 22:19 
AnswerRe: select values from a table dyunamically in Stored procedure Pin
Niraj_Silver26-Jun-08 0:30
Niraj_Silver26-Jun-08 0:30 
Questionhow i set Table name and Column name dynmicalyy in Ms sql sp Pin
r_mohd17-Jun-08 21:42
r_mohd17-Jun-08 21:42 
AnswerRe: how i set Table name and Column name dynmicalyy in Ms sql sp Pin
Marek Grzenkowicz18-Jun-08 0:15
Marek Grzenkowicz18-Jun-08 0:15 
AnswerRe: how i set Table name and Column name dynmicalyy in Ms sql sp Pin
Niraj_Silver26-Jun-08 0:34
Niraj_Silver26-Jun-08 0:34 
QuestionHow to select records between ( 10 to 100) Pin
Logup17-Jun-08 4:26
Logup17-Jun-08 4:26 
AnswerRe: How to select records between ( 10 to 100) Pin
A Wong17-Jun-08 4:30
A Wong17-Jun-08 4:30 
GeneralRe: How to select records between ( 10 to 100) Pin
Logup17-Jun-08 7:56
Logup17-Jun-08 7:56 
AnswerRe: How to select records between ( 10 to 100) Pin
Alsvha17-Jun-08 5:39
Alsvha17-Jun-08 5:39 
QuestionStored Procedure, Commiting Changes Pin
Ian Uy17-Jun-08 3:30
Ian Uy17-Jun-08 3:30 
AnswerRe: Stored Procedure, Commiting Changes Pin
Ashfield17-Jun-08 3:50
Ashfield17-Jun-08 3:50 
GeneralRe: Stored Procedure, Commiting Changes Pin
Ian Uy17-Jun-08 4:34
Ian Uy17-Jun-08 4:34 
Questionasp.net insert data Pin
sonalisharma17-Jun-08 2:35
sonalisharma17-Jun-08 2:35 
AnswerRe: asp.net insert data Pin
Colin Angus Mackay17-Jun-08 3:08
Colin Angus Mackay17-Jun-08 3:08 
QuestionComplex SQL query... [modified] Pin
ruanr16-Jun-08 22:19
ruanr16-Jun-08 22:19 
AnswerRe: Complex SQL query... Pin
joemonvarghese80@yahoo.co.in16-Jun-08 22:24
joemonvarghese80@yahoo.co.in16-Jun-08 22:24 
GeneralRe: Complex SQL query... Pin
ruanr16-Jun-08 22:29
ruanr16-Jun-08 22:29 

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.