dbTalk Databases Forums  

VBS script error 429 Can't Create Object from DTS

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


Discuss VBS script error 429 Can't Create Object from DTS in the microsoft.public.sqlserver.dts forum.



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

Default VBS script error 429 Can't Create Object from DTS - 03-03-2004 , 11:16 AM






Hi

I've created a dts package that generates several output files from SQL & then uses the following sample VB script to export them via. cuteftp.

Dim MySit

Dim DestFolde
Dim SrcFolde
Dim FileToUploa

Dim FTPsit
Dim UserI
Dim Passwor
Dim Protoca

DestFolder = "/
SrcFolder = "C:\
FileToUpload = "CONFIG.SYS

FTPSite = "ftp.ftpsite.net
UserId = "xyz
Password = "*******
Protocal = "SFTP


'Creating a connection object and assign it to the variabl
Set MySite = CreateObject("CuteFTPPro.TEConnection"

' Now set each property for the site connection
' You can omit this section to use the default values, bu
' you should at least specify the Hos
'The default Protocol is FTP, however SFTP (SSH2), FTPS (SSL), HTTP, and HTTPS can also be used
MySite.Protocol = Protoca
MySite.Host = FTPSit
'following lines are optional since the default is anonymous if no login and password are define
MySite.Login = UserI
MySite.Password = Passwor
'if necessary, use the UseProxy method and ProxyInfo or SocksInfo properties to connect through a proxy serve
MySite.UseProxy = "BOTH
'now connect to the site (also called called implicitly when a remote method is called
MySite.Connec

....et

If I create the output files from DTS and run the vb independently via Explorer it works just fine, but from within DTS it fails with

DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220485 (800403FB

Error string: Error Code:

Error Source= Microsoft VBScript runtime erro

Error Description: ActiveX component can't create object: 'CuteFTPPro.TEConnection

Any ideas?

Reply With Quote
  #2  
Old   
JDP@Work
 
Posts: n/a

Default Re: VBS script error 429 Can't Create Object from DTS - 03-04-2004 , 09:55 AM






I'm a bit confused about doing this in Explorer, I've only used a cmd window.

What version of MSSQL are you using?

Here's some google....

http://sqlteam.com/item.asp?ItemID=12408

http://www.eggheadcafe.com/articles/20030923.asp

http://msdn.microsoft.com/library/de...mtsk3_2jaj.asp


HTH

JeffP....


"Dan" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I've created a dts package that generates several output files from SQL &
then uses the following sample VB script to export them via. cuteftp.

Dim MySite

Dim DestFolder
Dim SrcFolder
Dim FileToUpload

Dim FTPsite
Dim UserId
Dim Password
Dim Protocal

DestFolder = "/"
SrcFolder = "C:\"
FileToUpload = "CONFIG.SYS"

FTPSite = "ftp.ftpsite.net"
UserId = "xyz"
Password = "*******"
Protocal = "SFTP"


'Creating a connection object and assign it to the variable
Set MySite = CreateObject("CuteFTPPro.TEConnection")

' Now set each property for the site connection
' You can omit this section to use the default values, but
' you should at least specify the Host
'The default Protocol is FTP, however SFTP (SSH2), FTPS (SSL), HTTP, and
HTTPS can also be used)
MySite.Protocol = Protocal
MySite.Host = FTPSite
'following lines are optional since the default is anonymous if no login
and password are defined
MySite.Login = UserId
MySite.Password = Password
'if necessary, use the UseProxy method and ProxyInfo or SocksInfo
properties to connect through a proxy server
MySite.UseProxy = "BOTH"
'now connect to the site (also called called implicitly when a remote
method is called)
MySite.Connect

...etc


If I create the output files from DTS and run the vb independently via
Explorer it works just fine, but from within DTS it fails with

DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220485 (800403FB)

Error string: Error Code: 0

Error Source= Microsoft VBScript runtime error

Error Description: ActiveX component can't create object:
'CuteFTPPro.TEConnection'

Any ideas?



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.