dbTalk Databases Forums  

Debugging VB Script within DTS Package

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


Discuss Debugging VB Script within DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Debugging VB Script within DTS Package - 01-21-2006 , 11:16 AM






I’m experiencing a problem with a VB Script inside a DTS Package. When I
run the task via the Package designer it runs fine. However, when I run the
entire package the result is different.

I need to be able to debug the VB script within the package. The script
uses DTS global variables so I’m unable to run it as a standard script. The
server is a Windows 2003 Standard server running SQL server 2000 standard
edition.

Does anyone have any ideas?

Thanks


Reply With Quote
  #2  
Old   
vadim.svinkin@gmail.com
 
Posts: n/a

Default Re: Debugging VB Script within DTS Package - 01-23-2006 , 10:37 AM






I'm using combination of MsgBox and logging values to a couple of
tables through ADODB.Connection.

Vadim.


Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Debugging VB Script within DTS Package - 01-23-2006 , 02:10 PM



Larry Bird wrote:
Quote:
I’m experiencing a problem with a VB Script inside a DTS Package. When I
run the task via the Package designer it runs fine. However, when I run the
entire package the result is different.

I need to be able to debug the VB script within the package. The script
uses DTS global variables so I’m unable to run it as a standard script. The
server is a Windows 2003 Standard server running SQL server 2000 standard
edition.

Does anyone have any ideas?

Thanks

You can use the MS Script Debugger, free download I believe.

Using a STOP statement should allow you to attach to the process. This
is not always 100% reliable, but a MsgBox will pause execution and you
can attach then.

Check the properties of the DTS node in EM, there is a JIT debug option
I think, probably need to turn it on. (It has been a while...)


--
Darren
http://www.sqldts.com
http://www.sqlis.com


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.