Groups | Blog | Home
all groups > sql server dts > september 2004 >

sql server dts : Execute DTS in VB.net program



bill
9/27/2004 9:14:59 PM
Hi All,

How can I execute the dtsrun command in the vb.net program?

Please advise.
kppublic NO[at]SPAM netcomuk.co.uk
9/28/2004 3:43:42 AM
System.Diagnostics.Process.Start(DTSCommand)

Where DTSCommand is a string exactly as you would type on the comannd
line to use dtsrun (see BOL for syntax of dtsrun commands).

[quoted text, click to view]
Allan Mitchell
9/28/2004 7:46:41 PM
Why would you want to?

If i was executing package from .Net I would use the object model. Greater
control IMHO

http://www.sqldev.net/dts/ExecutePackage.htm

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


[quoted text, click to view]

kppublic NO[at]SPAM netcomuk.co.uk
9/29/2004 2:00:18 AM
Agreed, IF you can get it to work (see my "C# and DTS" thread. But I
don't expect that anyone else will have my problems).


[quoted text, click to view]
AddThis Social Bookmark Button