Microsoft
Software
Hardware
Network
Question : Inserting data into a varbinary(max) field
Hi,
I am using SQL Express 2008.
I've created a simple table that contains a varbinary(max) field.
Can someone please provide an example of an insert statement that inserts a word document (C:/test.doc) into the table.
This sounds like it should be simple but it’s got me stumped.
I need to do this because I want to explorer the full text search capabilities.
Thanks.
Answer : Inserting data into a varbinary(max) field
INSERT INTO myTable(vbmaxcol)
SELECT * FROM OPENROWSET(BULK N'C:\Test.doc', SINGLE_BLOB) AS Document;
GO
Random Solutions
Write in file
How do I add a comma to my string?
Migration from Windows 2000 AD to 2003
How much does the ticket 22450 (a) cvc (failure to stop at stop sign) cost in california?
how to import POP settings from .IAF file? Outlook 2003 from Outlook 2002
Exchange 2007 '452 Too many recipients received this hour'
Files from the "home folder" of user in Windows server 2003 AD slow to access
Replaced our SQL Server and now ALL reports are BROKE!
Have a problem with schtasks command in a tiny batch file
Proxy settings in Windows 7