Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Want to Execute DTS Package From Query Analyzer.

Author  Topic 

Weekend
Starting Member

20 Posts

Posted - 2006-06-21 : 02:04:47
Hi

SQL Server 2000
Created a “DTS Package” name “package1” with “SQL Server” Option.
The above package “package1” is now locate & execute from below location
Enterprise Manager > Local > Data Transformation Services > Local Packages >

I want to execute the same from Query Analyzer.
Please advise how?

Wishes
Jawad

nr
SQLTeam MVY

12543 Posts

Posted - 2006-06-21 : 05:05:07
you can use dstexec or the sp_oa.. sps.

see
http://www.nigelrivett.net/DTS/sp_oacreateLoadDTSpackage.html
dtsexec is just run from xp_cmdshell and is probably best for you.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Weekend
Starting Member

20 Posts

Posted - 2006-06-21 : 05:54:53
Thanks nr

But your solution wont work with me. I use windows2000/2003 server with SQL Server 2000 and nether xp_cmdshall nor windows Start>Run recognize “dtsexec”.

Instead “Windows Start>Run>dtswiz” execute dts but that’s not my requirement.

I want to execute the “(Package1) discuss above” from Query Analyzer.

Wishes
Jawad

Go to Top of Page
   

- Advertisement -