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
Frame relay congestion
Saving and renaming a image file
Remove "Document] is reserved by [author] - Enter password to modify, or open read only" dialog in Word 2007
Multiple monitor issue using Citrix
Visiting the Fort Worth / Dallas area in August, any suggestions on what to do and see?
Mix HTML and VB.NET
Windows Mobile 6 no longer synch with Outlook 2007 (in WIndows 7)
Gericom Notebook charger enters in short protection how to fix it?
favicon not showing up in IE8
Can't use WebEx, get "setting up event center" message