Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with trigger running a DTS script

Status
Not open for further replies.

ChrisBeach

Programmer
Jun 10, 2005
128
CA
I have a table with an update trigger, could anyone give me an example of code I could use to run my DTS script, whenever i try

EXEC xp_CMDShell 'DEAL_SalesCond'

it gives me a "no such stored proc as.." so I'm sure I'm going about it wrong, any help greatly appreciated, thanks!
 
You need to call xp_cmdshell with it's 3 part name master.dbo.xp_cmdshell. Within xp_cmdshell you'll need to call dtsrun.exe and give it the needed paramaters.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
no problem.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top