Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing XML
Message
 
To
03/08/2009 18:31:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Title:
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01415905
Message ID:
01416028
Views:
41
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform