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
 SQL Server Development (2000)
 Passing Parameters??

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-06 : 09:12:21
Ranjit writes "How can I call a DTS package from a stored procedure passing a parameter?"

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2002-05-06 : 10:21:27
The "passing a parameter" part of you question is throwing me off because I am not sure if you mean passing the dts package a parameter (aka global variable) or passing the proc a parameter. In either case, I don't know what the parameter is . . . So I'll ignore that part.

You have a couple options.
  • create a job with a cmdshell step to run dtsrun.exe: from your proc exec sp_start_job to invoke the job

  • run dtsrun.exe directly from your proc using xp_cmdshell

  • there may be a way to do this through SQL-DMO, but I haven't looking into it



<O>
Go to Top of Page

mohamedyousuff@yahoo.com
Starting Member

24 Posts

Posted - 2002-05-07 : 05:18:06

Read this article

http://www.swynk.com/friends/green/dtsole.asp







quote:

Ranjit writes "How can I call a DTS package from a stored procedure passing a parameter?"



Go to Top of Page
   

- Advertisement -