Home > Archive > MS SQL Server > May 2005 > DTS w/ C#









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DTS w/ C#
seth via SQLMonster.com

2005-05-06, 8:23 pm

I am executing a DTS package with a Console app and everything works fine.
I am now constructing a "Windows Application" to execute the package. This
fails (using the identical code). I can't figure out how to display the
package events using a WinForm (everything I find shows me how to use it
with a console app which is working just fine).

So ... how do I display errors in a Form?
... why do you think that it wont work in a form?
Gert E.R. Drapers

2005-05-31, 3:23 am

Because WinForms require the UI to be updated from the main thread, you need
to use BeginInvoke, see
http://samples.gotdotnet.com/quicks...r /> lling.aspx

GertD@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"seth via webservertalk.com" <forum@nospam.webservertalk.com> wrote in message
news:a77def4c0b414c6
5b4570e1e656aa5f0@we
bservertalk.com...
>I am executing a DTS package with a Console app and everything works fine.
> I am now constructing a "Windows Application" to execute the package.
> This
> fails (using the identical code). I can't figure out how to display the
> package events using a WinForm (everything I find shows me how to use it
> with a console app which is working just fine).
>
> So ... how do I display errors in a Form?
> ... why do you think that it wont work in a form?



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com