EXEC sp_configure 'show advanced options', '1' RECONFIGURE EXEC sp_configure 'Ad Hoc Distributed Queries', '1' RECONFIGURE; USE master; GO CREATE TABLE myTable(FileName nvarchar(60), FileType nvarchar(60), Document varbinary(max)); GO INSERT INTO myTable(FileName, FileType, Document) SELECT 'Exit.txt' AS FileName, '.txt' AS FileType, * FROM OPENROWSET(BULK N'E:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Exit.txt', SINGLE_BLOB) AS Document; GO
Msg 4861, Level 16, State 1, Line 2 Cannot bulk load because the file "E:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Exit.txt" could not be opened. Operating system error code 3(failed to retrieve text for this error. Reason: 15105).
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)