dbTalk Databases Forums  

Parameterized query fails syntax check when comments exist

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Parameterized query fails syntax check when comments exist in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeffrey K. Ericson
 
Posts: n/a

Default Parameterized query fails syntax check when comments exist - 04-20-2005 , 10:21 AM






I am wanting to pass a global varible into a simple insert..select statement
contained in an execute SQL task. The existing code has comments in the
header. The query will not pass a syntax check if the comments exist. I
treid both forms of comments, -- and /* to no avail. Removing the comments
allows the statement to pass and function.

Known problem? Any fix?

TIA,

Jeff

Reply With Quote
  #2  
Old   
Francesco Anti
 
Posts: n/a

Default Re: Parameterized query fails syntax check when comments exist - 04-20-2005 , 10:31 AM






It's a known problem. Try writing your comments after your SQL statement.

Francesco Anti

"Jeffrey K. Ericson" <JeffreyKEricson (AT) discussions (DOT) microsoft.com> wrote in
message news:B42BC8D4-304E-4C06-875C-7E87389FF732 (AT) microsoft (DOT) com...
Quote:
I am wanting to pass a global varible into a simple insert..select
statement
contained in an execute SQL task. The existing code has comments in the
header. The query will not pass a syntax check if the comments exist. I
treid both forms of comments, -- and /* to no avail. Removing the
comments
allows the statement to pass and function.

Known problem? Any fix?

TIA,

Jeff



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.