Click here to Skip to main content
16,007,126 members
Home / Discussions / Database
   

Database

 
QuestionTruncation of an input string Pin
Marcus J. Smith22-Jan-07 2:38
professionalMarcus J. Smith22-Jan-07 2:38 
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 
No, this won't work because the result of your varible gets placed inside the query and not the variable reference. If you are going to use a variable inside a dynamic t-sql string that variable must be declared inside the actual t-sql string.

Plus, if you're using your select statement to instantiate the variable @name is probably null. Which means if CONCAT_NULL_YIELDS_NULL is set to the default your entire string will be null.

If you can provide context for what it is you're trying to do we can give a recommendation that will help. Right now there are too many possibilites.

But I will at least take an initial jab and say that you're trying to do something like this:

<br />
DECLARE @Sql VARCHAR(2000)<br />
<br />
SET @Sql = '<br />
DECLARE @name = VARCHAR(50)<br />
SELECT @name = hlp_tTblNm FROM mhelp WITH(NOLOCK) WHERE hlp_tAlias = 'acc2'<br />
<br />
SELECT .... FROM ??? WHERE ??? = @name'<br />
<br />
EXECUTE (@Sql)<br />

QuestionProcedure problem Pin
KETAN K.21-Jan-07 22:02
KETAN K.21-Jan-07 22:02 
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 

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.