Insert BLOB
INSERT INTO BLOBTest (BLOBName, BLOBData)
SELECT 'First test file',
BulkColumn FROM OPENROWSET(Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB
Export BLOB
bcp "select datei from Person.Address WHERE
addressid=1 " queryout "c:\TestOut.doc" -T -n -Slocalhost\AdventureWorks
http://www.sqlservercentral.com/Forums/Topic487470-338-1.aspx
No comments:
Post a Comment