Click here to Skip to main content
15,915,160 members
Home / Discussions / Database
   

Database

 
AnswerRe: Truncation of an input string Pin
Michael Potter22-Jan-07 4:36
Michael Potter22-Jan-07 4:36 
GeneralRe: Truncation of an input string Pin
Marcus J. Smith23-Jan-07 1:30
professionalMarcus J. Smith23-Jan-07 1:30 
GeneralRe: Truncation of an input string Pin
Michael Potter23-Jan-07 4:29
Michael Potter23-Jan-07 4:29 
QuestionFull text indexing is sql server 2000 Pin
Uma Kameswari22-Jan-07 1:40
Uma Kameswari22-Jan-07 1:40 
AnswerRe: Full text indexing is sql server 2000 Pin
Paddy Boyd23-Jan-07 1:16
Paddy Boyd23-Jan-07 1:16 
QuestionProcedure problem Pin
KETAN K.21-Jan-07 22:10
KETAN K.21-Jan-07 22:10 
AnswerRe: Procedure problem Pin
Mark J. Miller22-Jan-07 2:56
Mark J. Miller22-Jan-07 2:56 
QuestionProcedure problem Pin
KETAN K.21-Jan-07 22:02
KETAN K.21-Jan-07 22:02 
I have to take the value of a column in a variable @name

The below code works fine but i have to take it in another variable @query
but it doesn't works please suggest me the solution


declare @name varchar(50)
declare @query varchar(500)
select @name=hlp_tTblNm from mhelp with(nolock) where hlp_tAlias='acc2'
print @name

problem
*********
declare @name varchar(50)
declare @query varchar(500)
set @query='select '+@name+'=hlp_tTblNm from mhelp with(nolock) where hlp_tAlias='acc2''
print @name
print @query

this code give me error incorrect syntex near acc2

shailendra
AnswerRe: Procedure problem Pin
Pete O'Hanlon21-Jan-07 22:39
mvePete O'Hanlon21-Jan-07 22:39 
QuestionDateTime error Pin
DanB198321-Jan-07 8:50
DanB198321-Jan-07 8:50 
AnswerRe: DateTime error Pin
Jon Sagara21-Jan-07 14:57
Jon Sagara21-Jan-07 14:57 
QuestionRetrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle21-Jan-07 6:57
FreeCastle21-Jan-07 6:57 
AnswerRe: Retrieving VARCHAR out of MSSQL with ADO Pin
liur1721-Jan-07 21:55
liur1721-Jan-07 21:55 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle22-Jan-07 10:46
FreeCastle22-Jan-07 10:46 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
liur1722-Jan-07 22:07
liur1722-Jan-07 22:07 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle24-Jan-07 5:16
FreeCastle24-Jan-07 5:16 
QuestionParameters Problem Pin
DanB198321-Jan-07 6:26
DanB198321-Jan-07 6:26 
AnswerRe: Parameters Problem Pin
DanB198321-Jan-07 8:06
DanB198321-Jan-07 8:06 
QuestionHelp required in stored procedures Pin
www.Developerof.NET21-Jan-07 3:52
www.Developerof.NET21-Jan-07 3:52 
AnswerRe: Help required in stored procedures Pin
M.H.1.2.321-Jan-07 5:33
M.H.1.2.321-Jan-07 5:33 
QuestionInform app of changes in database content Pin
zt.Prog21-Jan-07 2:34
zt.Prog21-Jan-07 2:34 
AnswerRe: Inform app of changes in database content Pin
andyharman22-Jan-07 2:15
professionalandyharman22-Jan-07 2:15 
QuestionSqlTriggerContext? Pin
zt.Prog21-Jan-07 1:45
zt.Prog21-Jan-07 1:45 
Questionhow to select all field names of a table?? Pin
Saira Tanwir20-Jan-07 23:18
Saira Tanwir20-Jan-07 23:18 
AnswerRe: how to select all field names of a table?? Pin
Bassam Saoud21-Jan-07 2:04
Bassam Saoud21-Jan-07 2:04 

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.