dbTalk Databases Forums  

Using Global Variables in Execute SQL Task in SQL Server 7 DTS?

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


Discuss Using Global Variables in Execute SQL Task in SQL Server 7 DTS? in the microsoft.public.sqlserver.dts forum.



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

Default Using Global Variables in Execute SQL Task in SQL Server 7 DTS? - 01-23-2004 , 04:10 AM






Hi there

Is it possible to reference global variables in an 'execute SQL task' in
SQL Server 7? I know you can use parameters in SQL 2000, but is there
another way round this in SQL 7?

Thanks a lot

Lewis Veale
lewisdotvealeatpdms.com
www.pdms.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Using Global Variables in Execute SQL Task in SQL Server 7 DTS? - 01-23-2004 , 04:20 AM






You would have to do this in a Active Script task prior to the ExecuteSQL
task

Global Variables and SQL statements in DTS
(http://www.sqldts.com/Default.aspx?205)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Lewis" <lewisdotvealeatpdms.com> wrote

Quote:
Hi there

Is it possible to reference global variables in an 'execute SQL task' in
SQL Server 7? I know you can use parameters in SQL 2000, but is there
another way round this in SQL 7?

Thanks a lot

Lewis Veale
lewisdotvealeatpdms.com
www.pdms.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #3  
Old   
Lewis
 
Posts: n/a

Default Re: Using Global Variables in Execute SQL Task in SQL Server 7 DTS? - 01-23-2004 , 04:30 AM



Thanks Allan. I thought that might be the case, but wanted to be sure.

Lewis Veale
lewisdotvealeatpdms.com
www.pdms.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.