Showing posts with label progress. Show all posts
Showing posts with label progress. Show all posts

Wednesday, March 21, 2012

Package Execution with Custom UI

Hi:

I need a user to pass an input to a package from a VB form, and then want to show progress/errors in the form.

I have been able to use Application. LoadFromSqlServer and I then set pkg.Variables.(MyVariable) to the required value before calling Execute.

Works fine so far.

I dont know how to show progress. The DTSExecResult just returns a Cryptic Success /Failure status message.

Is there a way to log the errors if any to my Windows form? I have seen samples on Console Apps(see below) but I would prefer to show it in my Windows form in a text Box or something, appending each error result to the text.

TIA

Kartik

Code Snippet

Class EventListener
Inherits DefaultEvents

Public Overrides Function OnError(ByVal source As Microsoft.SqlServer.Dts.Runtime.DtsObject, _
ByVal errorCode As Integer, ByVal subComponent As String, ByVal description As String, _
ByVal helpFile As String, ByVal helpContext As Integer, _
ByVal idofInterfaceWithError As String) As Boolean

' Add application�Cspecific diagnostics here.
Console.WriteLine("Error in {0}/{1} : {2}", source, subComponent, description)
Return False

End Function

End Class

That's the code you want - you need to capture the events, and write to a text box instead of the console.

Monday, February 20, 2012

Overlapped I/O operation is in progress

SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
the server after the removal and now I am reinstalling SQL Server when I get
this error. Any suggestions on what is happening and how to fix it? I am
really a newbie to SQL.Anne West wrote:
> SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
> the server after the removal and now I am reinstalling SQL Server when I g
et
> this error. Any suggestions on what is happening and how to fix it? I am
> really a newbie to SQL.
Google has plenty hits for this error message. I did not read many of
them but it seems a general error message.
Also, why did you deinstall SQL Server in the first place?
Regards
robert|||The original install got corrupt [don't ask!!], I removed it and
inadvertantly installed a local instance. The SQL server is behind a
firewall and a local instance will not work for the company needs. After
much discussion, it was agreed to remove the local instance and start over.
I get to the point of entering the number of licenses and then the error pop
s
up. I only had 3 weeks training before my predecessor left. I will look at
Google. Thanks for the suggestion.
"Robert Klemme" wrote:

> Anne West wrote:
> Google has plenty hits for this error message. I did not read many of
> them but it seems a general error message.
> Also, why did you deinstall SQL Server in the first place?
> Regards
> robert
>

Overlapped I/O operation is in progress

SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
the server after the removal and now I am reinstalling SQL Server when I get
this error. Any suggestions on what is happening and how to fix it? I am
really a newbie to SQL.Anne West wrote:
> SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
> the server after the removal and now I am reinstalling SQL Server when I get
> this error. Any suggestions on what is happening and how to fix it? I am
> really a newbie to SQL.
Google has plenty hits for this error message. I did not read many of
them but it seems a general error message.
Also, why did you deinstall SQL Server in the first place?
Regards
robert|||The original install got corrupt [don't ask!!], I removed it and
inadvertantly installed a local instance. The SQL server is behind a
firewall and a local instance will not work for the company needs. After
much discussion, it was agreed to remove the local instance and start over.
I get to the point of entering the number of licenses and then the error pops
up. I only had 3 weeks training before my predecessor left. I will look at
Google. Thanks for the suggestion.
"Robert Klemme" wrote:
> Anne West wrote:
> > SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
> > the server after the removal and now I am reinstalling SQL Server when I get
> > this error. Any suggestions on what is happening and how to fix it? I am
> > really a newbie to SQL.
> Google has plenty hits for this error message. I did not read many of
> them but it seems a general error message.
> Also, why did you deinstall SQL Server in the first place?
> Regards
> robert
>

Overlapped I/O operation is in progress

SQL Server 2000. I removed SQL Server using Add/Remove Programs, rebooted
the server after the removal and now I am reinstalling SQL Server when I get
this error. Any suggestions on what is happening and how to fix it? I am
really a newbie to SQL.
The original install got corrupt [don't ask!!], I removed it and
inadvertantly installed a local instance. The SQL server is behind a
firewall and a local instance will not work for the company needs. After
much discussion, it was agreed to remove the local instance and start over.
I get to the point of entering the number of licenses and then the error pops
up. I only had 3 weeks training before my predecessor left. I will look at
Google. Thanks for the suggestion.
"Robert Klemme" wrote:

> Anne West wrote:
> Google has plenty hits for this error message. I did not read many of
> them but it seems a general error message.
> Also, why did you deinstall SQL Server in the first place?
> Regards
> robert
>