Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML files
Message
From
29/09/2005 11:21:28
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Title:
XML files
Miscellaneous
Thread ID:
01054507
Message ID:
01054507
Views:
54
We need to import data from a XML file into a table of sql server database.

As I know, we could use OPENXML. Could we use other methods?

Could we read directly from a XML file instead of using @doc like in following example?

DECLARE @idoc int
DECLARE @doc varchar(1000)
SET @doc ='

....
'
EXEC sp_xml_preparedocument @idoc OUTPUT, @doc
SELECT *
FROM OPENXML
EXEC sp_xml_removedocument @idoc


Thanks

Jim Hou
Next
Reply
Map
View

Click here to load this message in the networking platform