Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML files
Message
 
 
À
29/09/2005 11:21:28
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Divers
Thread ID:
01054507
Message ID:
01054521
Vues:
19
Check SQLXML for SQL Server 2000 at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_SQLXML.asp

>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
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform