-
1
- #1
Hello,
I thought this might be useful to someone.
If you need to execute a DTS package from a VBA module in your ADP, follow these steps :
Create your DTS package in SQL Server and choose Save As.
In the Save DTS Package window scroll down the Location combobox and choose Visual basic File. Save it to your directory. The result is your DTS package is now a text file containing the VB code. You may now import this file into your ADP as a module. The main procedure is called Main(). You can rename it to something more meaningfull then call it from your code, it will execute your DTS package.
I thought this might be useful to someone.
If you need to execute a DTS package from a VBA module in your ADP, follow these steps :
Create your DTS package in SQL Server and choose Save As.
In the Save DTS Package window scroll down the Location combobox and choose Visual basic File. Save it to your directory. The result is your DTS package is now a text file containing the VB code. You may now import this file into your ADP as a module. The main procedure is called Main(). You can rename it to something more meaningfull then call it from your code, it will execute your DTS package.