dbTalk Databases Forums  

DTS Parameter Queries & Comments

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


Discuss DTS Parameter Queries & Comments in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Hamilton
 
Posts: n/a

Default DTS Parameter Queries & Comments - 05-13-2005 , 12:41 PM






I get an error when I put comments at the top of my queries when trying to
set them up to use parameters. Without the comments, I don't. Even if the
comment is as simple as /* */, I get the error and it doesn't let me setup
the parameters. I can put the comments below the query with out getting the
error. Any ideas? Is there a patch that fixes this?

Thanks,
Rob

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: DTS Parameter Queries & Comments - 05-13-2005 , 01:55 PM






Hi Robert,

"Robert Hamilton" <RobertHamilton (AT) discussions (DOT) microsoft.com> schrieb im
Newsbeitrag news82178B8-49F1-4B96-A843-8953BE25C2FB (AT) microsoft (DOT) com...
Quote:
I get an error when I put comments at the top of my queries when trying to
set them up to use parameters. Without the comments, I don't. Even if the
comment is as simple as /* */, I get the error and it doesn't let me
setup
the parameters. I can put the comments below the query with out getting
the
error. Any ideas? Is there a patch that fixes this?
I'm afraid to say, thats the normal behaviour. The Command evaluation in
the DTS Designer only allows one command per step to use the parameter
and/or evaluation button.
And comments are also commands.
During runtime, this limitation doesn't exist. So you have to workaround
this by changing or even replacing the original statement with a dummy
statement to define the paramaters and the change the statement back.

HTH
Helge




Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Parameter Queries & Comments - 05-14-2005 , 10:12 AM



Are you going against SQL Server?
Which task are you using?
Which SP of SQL Server?

I have just done this in an ExecuteSQL task pointing to SQL Server

/**/
SELECT 1 as 'One'

And I could run the query and populate a GV from it.

If you are referring to the DataPump task then yes this falls over. The
design time experience is delicate.

If you want to comment the task then you could use Annotations.

Allan

"Robert Hamilton" <RobertHamilton (AT) discussions (DOT) microsoft.com> wrote in
message news:RobertHamilton (AT) discussions (DOT) microsoft.com:

Quote:
I get an error when I put comments at the top of my queries when trying to
set them up to use parameters. Without the comments, I don't. Even if the
comment is as simple as /* */, I get the error and it doesn't let me setup
the parameters. I can put the comments below the query with out getting the
error. Any ideas? Is there a patch that fixes this?

Thanks,
Rob


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.