Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SQL XML Bulk Load - Error Connecting to the Data Source

$
0
0

Hi,

I'm trying to test a SQL XML Bulk Load routine with SQL Server 2008 R2 installed on Server 2008 R2. I'm receiving the below error when running my script.

The code in my vbs script is as follows (with personal details altered).

Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad.4.0")
objBL.ConnectionString = "provider=SQLOLEDB.1;data source=servername\instance;database=MyDatabase;User id=domain\username;Password=PASSWORD"
objBL.ErrorLogFile = "c:\error.log"
objBL.Execute "c:\customermapping.xml", "c:\customers.xml"
Set objBL = Nothing

I thought I had the connection string right, could anybody comment on why I might be receiving this error?

Many Thanks,

James


James Bratley


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>