dbTalk Databases Forums  

execute sql task/connections

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


Discuss execute sql task/connections in the microsoft.public.sqlserver.dts forum.



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

Default execute sql task/connections - 08-19-2003 , 11:40 AM






does anyone know how to refer to another connection from within an execute sql task

eg
Execute sql task
on connection 1

select * from authors where id not in (select * from connection2.dbo.authors)

Ive found you can use the standard databasename.tablename, but I am developing in debug and want to easily port this to production by just changing the connections


TIA

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

Default Re: execute sql task/connections - 08-19-2003 , 12:38 PM






You cannot ref another connection from an ExecuteSQL task. You can though ref Linked Servers which is what you actually want to do.

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"rob thomson" <rob.thomson (AT) virginmusic (DOT) com> wrote

does anyone know how to refer to another connection from within an execute sql task

eg
Execute sql task
on connection 1

select * from authors where id not in (select * from connection2.dbo.authors)

Ive found you can use the standard databasename.tablename, but I am developing in debug and want to easily port this to production by just changing the connections


TIA

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.