dbTalk Databases Forums  

sqlxmlbulkload issue in DTS

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


Discuss sqlxmlbulkload issue in DTS in the microsoft.public.sqlserver.dts forum.



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

Default sqlxmlbulkload issue in DTS - 04-11-2006 , 02:49 PM






I am newbie to the SQL server and I am using vbs to bulk load into the PUB
database.

The following is the error message, I receive.
Error Source: Microsoft Data Transformation Services(DTS) Package
Error Description : Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: ActiveX component can't create Object:
"SQLXMLBulkLoad.SQLXMLBulkLoad'
Error on Line 13

The following is my vbs.
'************************************************* *********************
' Visual Basic ActiveX Script
'************************************************* ***********************
Option Explicit
Dim objBL

Function Main()
LoadFile()
Main = DTSTaskExecResult_Success
End Function

Function LoadFile()

Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objBL.ConnectionString = "provider=SQLOLEDB.1;data
source=ASICORPDEV;database=pubs;uid=routeone;pwd=a siroute1"
objBL.ErrorLogFile = "C:\temp\error.log"
objBL.Execute "C:\Documents and Settings\Jagadish Raghupathi\My
Documents\Visual Studio Projects\Upload\Test_Jobs.xsd", "C:\Documents and
Settings\Jagadish Raghupathi\My Documents\Visual Studio
Projects\Upload\Test_Jobs.xml"


Set objBL = Nothing
MsgBox("Complete")
End Function

I am not sure the error is in XML or XSD. I can post it in case required.






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.