Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing XML
Message
 
À
03/08/2009 18:31:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01415905
Message ID:
01416028
Vues:
42
>Thanks Borislav and Brandon,
>
>I looked through and tried some of these ideas but most require the table structures to already be there. We tried to import from the VistaDB database also, but kept running into errors. I will probably just end up creating my own little routine to move the records.
>Thanks
>Tim


Based on second link I sent here, what about:
SELECT 'c:\TestXml.xml' AS XMLFileName, xmlData  INTO YourNewTable
FROM
(SELECT  * 
         FROM OPENROWSET (BULK 'c:\TestXml.xml', SINGLE_BLOB) AS XMLDATA
) AS FileImport (XMLDATA)
Again, not tested!!!!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform