dbTalk Databases Forums  

Save DTS Pakage as vbscript

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


Discuss Save DTS Pakage as vbscript in the microsoft.public.sqlserver.dts forum.



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

Default Save DTS Pakage as vbscript - 08-21-2003 , 01:38 PM






Hello,

I exported a package to vbscript. Then I tried to paste the code back into
a new package using the "ActiveX Script Task". However, this didn't work.
Is there any reason why this wouldn't work since it was created by the DTS
package?

--
Thanks in advance,

Steven



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

Default Re: Save DTS Pakage as vbscript - 08-21-2003 , 01:51 PM






In article <OopuqNBaDHA.388 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Steven K
<sckeels (AT) lucent (DOT) com> writes
Quote:
Hello,

I exported a package to vbscript. Then I tried to paste the code back into
a new package using the "ActiveX Script Task". However, this didn't work.
Is there any reason why this wouldn't work since it was created by the DTS
package?

--
Thanks in advance,

Steven

I am not aware of any Export to VBScript functions or tools how do you
do this, or did you export to VB, and get confused? The two are not the
same language at all.

SQL 7.0 came with ScriptPkg, and SQL 2000 Enterprise Manager has a Save
As VB option in the Save As dialog. The VBScript code will be
significantly different, primarily because VB is strongly typed language
and VBScript is not. You should still be able to convert VB to VBScript
with a bit of effort.

Why create a package in ActiveX Script at run-time. Would it not be
easier to develop, debug and maintain as a normal package. This package
could then be executed from an ActiveX Script Task or through the
Execute Package Task.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.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.