Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing XML to SQL database

Status
Not open for further replies.

leangross

IS-IT--Management
Jul 3, 2002
84
0
0
PH
I made a package in sql server which imports xml to sql server the vbscript is listed below.
Code:
dim objBL 
Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objBL.ConnectionString = "provider=SQLOLEDB.1;data source=(local);database=mydatabase;uid=sa;pwd=secret"
objBL.ErrorLogFile = "c:\error.log"
objBL.Execute "d:\test.xml", "d:\test_xml.xml"
Set objBL = Nothing


When I ran the package, the this error showed up:
Error code:0
Error Source=Microsoft VBScript runtime error
Error Description: ActiveX component can't create object:
"SQLXMLBulkLoad.SQLXMLBulkLoad"

Error on Line 6



What do i need to fix this error? Do I need to install anyting like a patch for sql server 2000?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top