0
INSERT INTO DVR_DOCUMENTS(path, Document)
Select
'C:\2.csv', 1.csv
FROM OPENROWSET
(BULK 'C:\2.csv', SINGLE_BLOB) Document
Declare @sql varchar(500)
set @sql = 'BCP "select DOCUMENT from [dbname].dbo.DVR_DOCUMENTS Where ID=1" QUERYOUT C:\7.CSV -T -f C:\DVR_DOCUMENTS.fmt -S ' + @@SERVERNAME
print @SQL
EXEC master.dbo.xp_CmdShell @sql
bcp "select DOCUMENT from [Dbname].dbo.DVR_DOCUMENTS Where ID=9" queryout C:\7.pdf -T -c
NULL
Starting copy...
NULL
1 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 1 Average : (1000.00 rows per sec.)
NULL
我無法下載我所上傳的文件。誰能幫忙?