Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML and DTS
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Divers
Thread ID:
00863647
Message ID:
00865226
Vues:
17
This message has been marked as the solution to the initial question of the thread.
The easiest way is to just create an active x script to load your xml and then insert the data. Here is a example of something that I do to load some xml from a source into a table.
	dim objADOCnn,
	Set objADOCnn = CreateObject("ADODB.Connection")
	
	dim strConnectionStr
	strConnectionStr = "DRIVER={SQL Server};SERVER=***;UID=***;PWD=****;"
	objADOCnn.Open strConnectionStr


		dim oXMLDoc, myXMLQuery
		set oXMLDoc = CreateObject("Msxml2.DOMDocument")
		oXMLDoc.async = false

		myXMLQuery = "http://your.xmlsource.com/document.xml"

		if oXMLDoc.load(myXMLQuery) then
'Do something with your xml data
			objADOCnn.execute("updateData '" & oXMLDoc.xml & "'")
		else
			'Error... No News Data Retrieved
		end if
					
		set oXMLDoc = nothing

	objADOCnn.Close
	set objADOCnn = nothing
This sould get you started.

>Hello Eric,
>
>>Are you asking how you can get xml data into DTS or out of DTS?
>I want to get XML Files via DTS into SQL Server.
>Thanks in advance
>Marcus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform