On Wed, 28 Jan 2004 13:55:49 -0800, "Mike"
<anonymous (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I noticed that you can save the dts package as a visual
basic module. If you do that, how can you execute the
code? Do you have to do additional programming or is it a
plug-and-play type of scenario.
I made a form and included the references for DTS using
VB6, but it did not work. In fact, it didn't do anything. |
If you have a read of the code, you will see that it is a stand-alone
module with a Sub Main(). The code builds up a DTS package, and at the
end of the procedure is code for either executing or saving the package
(with the SaveToSQLServer call commented out).
The fact that it doesn't do anything suggests that the VB project is set
to run the form, not Sub Main(), at startup. If your VB form called
Main() it would create and execute the package.
cheers,
Ross.
--
Ross McKay, WebAware Pty Ltd
"The lawn could stand another mowing; funny, I don't even care"
- Elvis Costello