Re: Bulkloading external xml file
From: Paulo (paulo_at_msdn.com)
Date: 12/02/04
- Next message: Adam Machanic: "Re: Capture FOR XML output in a local string variable?"
- Previous message: Michael Rys [MSFT]: "Re: Import XML file to database (MS Server 2000) using procedure (transact sql) ???"
- In reply to: Dennis Redfield: "Re: Bulkloading external xml file"
- Next in thread: Dennis Redfield: "Re: Bulkloading external xml file"
- Reply: Dennis Redfield: "Re: Bulkloading external xml file"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 04:41:02 -0800
Alright, but how can I retrieve it and save it to a local file? Would please
write a VBScript example?
"Dennis Redfield" wrote:
> I do not believe that the execute method implements http resolution - you
> will need to resolve and retrieve your data either into a stream or to a
> local file and pass the stream or file reference to the execute method.
>
> dlr
>
> "Paulo" <paulo@msdn.com> wrote in message
> news:7FDD076C-0CA9-4FCD-A93B-45AF015D5917@microsoft.com...
> > Can I call an external url which requests a xml file when executing a
> > BulkLoad operation? I'm getting the error message:
> > Error opening the datafile. Code:80004005.
> > There is no problem with my database connection and I am able to access
> the
> > url from an internet browser.
> >
> > Below is my code:
> > set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
> > objBL.ConnectionString = "provider=SQLOLEDB.1;data
> > source=localhost;database=db0681;uid=sa;pwd=as"
> > objBL.ErrorLogFile = "d:\xml\error.log"
> > objBL.Execute "AddressSchema.xml",
> >
> "http://mypartnerurl.com/addresslookup.pce?postcode=AAA&userId=myUser&passwo
> rd=pwd"
> > set objBL=Nothing
>
>
>
- Next message: Adam Machanic: "Re: Capture FOR XML output in a local string variable?"
- Previous message: Michael Rys [MSFT]: "Re: Import XML file to database (MS Server 2000) using procedure (transact sql) ???"
- In reply to: Dennis Redfield: "Re: Bulkloading external xml file"
- Next in thread: Dennis Redfield: "Re: Bulkloading external xml file"
- Reply: Dennis Redfield: "Re: Bulkloading external xml file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|