[求助]在VB中调用SQL Server DTS功能时,事件处理的问题
gucs 2005-08-17 04:00:27 根据SQL Server联机帮助,和代码演示,我已经实现了在VB中调用DTS完成表复制的功能。想通过处理OnProcess事件得到复制进度,于是使用WithEvents声明对象,但发生错误,下面是帮助中关于该错误的说明。
After you have declared a Package object variable WithEvents, you must provide event handlers for all the package events. If you fail to do so, you will typically receive an access violation error at the time the unhandled event is raised.
Because Visual Basic objects do not support multiple threads, you also must set the ExecuteInMainThread property to TRUE for each Step object in the package.
根据以上的方法,我设置了Step对象的ExecuteInMainThread属性,但问题仍旧。
请问哪位有相关的开发经验?