![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
Hi, I am trying to programatically run a DTS package from .Net (C#) and and ideally would like to see the "Executing DTS Package" and "Package Execution |
|
I've reviewed dtsrun, dtsrunui utilities and KB319985 articles. If the dtsrun utilitity had a argument indicating to display "Executing DTS Package" and "Package Execution Results" windows that would be work, but |
|
If the dtsrunui utilitity accepted arguments for the server, package, etc... that would be great, but it doesn't. I could use the package2Class.execute method with and the events as in KB319985, but would have to write my own "Executing DTS Package" and |
|
So my question is this - does anyony know how to programatically run a DTS package from .Net (C#) and and get see the "Executing DTS Package" and |
|
Thanks, Mark |
#3
| |||||
| |||||
|
|
Hi, I am trying to programatically run a DTS package from .Net (C#) and and ideally would like to see the "Executing DTS Package" and "Package Execution |
|
I've reviewed dtsrun, dtsrunui utilities and KB319985 articles. If the dtsrun utilitity had a argument indicating to display "Executing DTS Package" and "Package Execution Results" windows that would be work, but |
|
If the dtsrunui utilitity accepted arguments for the server, package, etc... that would be great, but it doesn't. I could use the package2Class.execute method with and the events as in KB319985, but would have to write my own "Executing DTS Package" and |
|
So my question is this - does anyony know how to programatically run a DTS package from .Net (C#) and and get see the "Executing DTS Package" and |
|
Thanks, Mark |
#4
| |||
| |||
|
|
Thanks for the pointers Darren an Allan, this appears to be exactly what I need. I've tried converting to C# and have run into some difficulties... In particular the the VB examples shows a connection string as the the 3 argument on the SQLNS.Initialize method gobjSQLNS.Initialize "SQL Namespace Object Browser", cbRootType.ListIndex, CStr(strConnect), hWnd However, VS .Net Intellisense and the reference are showing a optional argument of ref object pRootInfo as the 3 argument. - http://msdn.microsoft.com/library/de...s_ref_89wx.asp Bottom line - does anyone know where a C# example of using the SQL-NS ? Thanks, Mark "Darren Green" wrote: To leverage the MS written windows you need to use SQL-NS to execute the package as opposed to the object model. You can use the simple SQL-NS demo project (VB6) that ships with SQL Server to check this out. C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\sqlns Darren Green http://www.sqldts.com "Mark" <Mark (AT) discussions (DOT) microsoft.com> wrote in message news:E3ADB90F-5D9E-47FF-9A5C-40945D9A10D1 (AT) microsoft (DOT) com... Hi, I am trying to programatically run a DTS package from .Net (C#) and and ideally would like to see the "Executing DTS Package" and "Package Execution Results" windows displayed. I've reviewed dtsrun, dtsrunui utilities and KB319985 articles. If the dtsrun utilitity had a argument indicating to display "Executing DTS Package" and "Package Execution Results" windows that would be work, but it doesn't. If the dtsrunui utilitity accepted arguments for the server, package, etc... that would be great, but it doesn't. I could use the package2Class.execute method with and the events as in KB319985, but would have to write my own "Executing DTS Package" and "Package Execution Results" windows. So my question is this - does anyony know how to programatically run a DTS package from .Net (C#) and and get see the "Executing DTS Package" and "Package Execution Results" windows displayed ? Thanks, Mark |
![]() |
| Thread Tools | |
| Display Modes | |
| |