dbTalk Databases Forums  

ActiveX and error Message

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ActiveX and error Message in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rainer
 
Posts: n/a

Default ActiveX and error Message - 02-12-2004 , 05:56 AM






Hello

I Have a simple Qeustion

I want to get in an ActiveX Script the last error message
because I'm starting this script when the last Task falls. In this script I
send a mail to me what was the failed step, but I can't read the really
reason and I ever have to look into the DTS Pakage what was really wrong

could you help me please?

greetings from Germany/north Bavarian

Rainer



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: ActiveX and error Message - 02-12-2004 , 06:02 AM






You may be able to use/adapt this script

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/Default.aspx?208,2)

the GetExecutionErrorInfo method of the Step object.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Rainer" <rr (AT) asdf (DOT) de> wrote

Quote:
Hello

I Have a simple Qeustion

I want to get in an ActiveX Script the last error message
because I'm starting this script when the last Task falls. In this script
I
send a mail to me what was the failed step, but I can't read the really
reason and I ever have to look into the DTS Pakage what was really wrong

could you help me please?

greetings from Germany/north Bavarian

Rainer





Reply With Quote
  #3  
Old   
Rainer
 
Posts: n/a

Default Re: ActiveX and error Message - 02-12-2004 , 08:27 AM



Hallo

this script is very fine

but I don't start the package from VB
I want to read the error from an ActiveX Script insite the DTS package

greetings

Rainer

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:eXzILAW8DHA.2760 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
You may be able to use/adapt this script

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/Default.aspx?208,2)

the GetExecutionErrorInfo method of the Step object.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Rainer" <rr (AT) asdf (DOT) de> wrote in message
news:Ok60O9V8DHA.2924 (AT) tk2msftngp13 (DOT) phx.gbl...
Hello

I Have a simple Qeustion

I want to get in an ActiveX Script the last error message
because I'm starting this script when the last Task falls. In this
script
I
send a mail to me what was the failed step, but I can't read the really
reason and I ever have to look into the DTS Pakage what was really wrong

could you help me please?

greetings from Germany/north Bavarian

Rainer







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: ActiveX and error Message - 02-12-2004 , 08:36 AM



good point

GetExecutionErrorInfo uses ByRef arguments and these have to be strongly
typed so VBScript blows up.

You might try wrapping this in an COM wrapper and using that instead.

Not pretty I grant you.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Rainer" <rr (AT) asdf (DOT) de> wrote

Quote:
Hallo

this script is very fine

but I don't start the package from VB
I want to read the error from an ActiveX Script insite the DTS package

greetings

Rainer

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:eXzILAW8DHA.2760 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
You may be able to use/adapt this script

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/Default.aspx?208,2)

the GetExecutionErrorInfo method of the Step object.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Rainer" <rr (AT) asdf (DOT) de> wrote in message
news:Ok60O9V8DHA.2924 (AT) tk2msftngp13 (DOT) phx.gbl...
Hello

I Have a simple Qeustion

I want to get in an ActiveX Script the last error message
because I'm starting this script when the last Task falls. In this
script
I
send a mail to me what was the failed step, but I can't read the
really
reason and I ever have to look into the DTS Pakage what was really
wrong

could you help me please?

greetings from Germany/north Bavarian

Rainer









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.