borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to Place a Datalist on top a frame)Next Topic (log file + Compare function in Access) New Topic New Poll Post Reply
AndreaVB Forum : Database : run DTS package from VB app
Poster Message
sillyfilly
Level: Guest


icon run DTS package from VB app

Can anyone tell me how to launch a DTS package in SQL Server from a VB app?  I'd rather not have to call a batch file that runs it... I'd rather not have any extra files to install on the users' machine.

Thanks!

16-01-2003 at 08:31 PM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: run DTS package from VB app

Many different ways exist, however, most I believe require the SQL components to be installed on the machine.

There is another option that I believe will work (although you'll have to use a generic account that has access to the master db [msdb] such as the sa account) that doesn't require any additional files.

First, you'll have to make a job that will run the DTS package, then you can do the following:

Connection.Execute "sp_start_job @job_name='JobName'"

Of course you could also schedule a trigger on a table that will run a package, but the above may be the easiest.

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

16-01-2003 at 09:13 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : run DTS package from VB app
Previous Topic (How to Place a Datalist on top a frame)Next Topic (log file + Compare function in Access) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder