Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DTS Packages & Scripts
Message
From
23/11/2001 17:51:06
 
 
To
22/11/2001 16:23:00
General information
Forum:
Visual Basic
Category:
SQL Server
Miscellaneous
Thread ID:
00584990
Message ID:
00585263
Views:
20
>can anybody help me with this....???
>
>i have a dts package saved in my local drive and i want to to be run by a simple application in vb6... help..help.. also i have script (query analyzer) that i want to run automatically using vb6... i just want these dts packages & sql scripts ran in a vb6 application.. by the im using sql7 not sql2000

For the DTS package, you can execute it through the DTSRUN utility or by creating a job that runs the package and calling the sp_start_job system procedure.

For the sql script you can save the T-SQL commands on a stored procedure of your database and call it with ADO. Something like:
oConnection.Execute "sp_start_job 'mydtsjob'" 'run job with dts package
oConnection.Execute "mystoredproc" 'run stored procedure
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform