dbTalk Databases Forums  

XML Load

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


Discuss XML Load in the microsoft.public.sqlserver.dts forum.



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

Default XML Load - 12-17-2004 , 09:33 AM






How to load XML File into sql server db through DTS ?
Pls let me know.

Thanks

Reply With Quote
  #2  
Old   
Kornel Kasprzyk
 
Posts: n/a

Default Re: XML Load - 12-21-2004 , 04:32 AM






Hi,
I suggest You to use SQLXML 3.0 Data Access Components.
You can download it from MS WebSite:
http://www.microsoft.com/downloads/t...displaylang=en
You can use SQLXMLBulkLoad obj. to load data from XML source to MS SQL 2000
database.
The example is set below.
Rgds,
Kornel.

Function Main()
Dim objXBulkLoad
Set objXBulkLoad = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad.3.0")
objXBulkLoad.ConnectionString = "provider=SQLOLEDB.1;server=(local);" & _
"database=test;Trusted_Connection=Yes;"
objXBulkLoad.Execute "c:\my_schema.xsd", "c:\my_data.xml"
Main = DTSTaskExecResult_Success
End Function


Użytkownik "mvp" <mvp (AT) discussions (DOT) microsoft.com> napisał w wiadomości
news:6D80EF86-C059-4362-818E-B4599565A606 (AT) microsoft (DOT) com...
Quote:
How to load XML File into sql server db through DTS ?
Pls let me know.

Thanks



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.