Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing XML
Message
From
04/08/2009 07:58:30
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
04/08/2009 05:40:06
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Title:
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01415905
Message ID:
01416034
Views:
34
>>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!!!!

I did keep this one in my sights. I got the impression it required the table structure to be already created but maybe not. I will try it both ways on one table and see if this will work for us.
Thanks
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform