Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML files
Message
De
29/09/2005 11:21:28
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
XML files
Divers
Thread ID:
01054507
Message ID:
01054507
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform