May 29, 2014 at 8:04 am
Can someone help me please with this request:
SET @SQL = 'SELECT *,''A'' FROM OPENQUERY(' + @VALEUR_PARAM+''',SELECT * FROM DAGCONS)'''
i got this error mess:
Msg 105, Level 15, State 1, Line 1
Unclosed quotation mark after the character string ',SELECT * FROM DAGCONS'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ',SELECT * FROM DAGCONS'.
May 29, 2014 at 8:22 am
Move quotation sign behing comma.
May 29, 2014 at 8:32 am
i don't really understand your reply
May 29, 2014 at 8:46 am
Try printing your @SQL variable to know how the string is formed and identify syntax errors more easily.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply