INSERT INTO T(XmlCol)
SELECT * FROM OPENROWSET(
BULK 'c:\SampleFolder\SampleData3.txt', SINGLE_BLOB) AS xYou must include the as X to name the column or the import will fail.
THis example and more can be taken from here http://msdn.microsoft.com/en-us/library/ms191184.aspx
No comments:
Post a Comment