Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DTS Packages & Scripts
Message
De
23/11/2001 17:51:06
 
 
À
22/11/2001 16:23:00
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Divers
Thread ID:
00584990
Message ID:
00585263
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform