Textcopy.exe utility is not described in SQL Server Books Online, but you can get its description by typing textcopy /? from the command prompt. This is the description:
Copies a single text or image value into or out of SQL Server. The value |
CREATE PROCEDURE sp_textcopy ( |
sp_textcopy @srvname = 'ServerName', |
INSERT INTO [dbo].[images] VALUES ('1', 0x0, null)
instead of:
INSERT INTO [dbo].[images] VALUES ('1', null, null)
Otherwise, you will get the following error message:
ERROR: Text or image pointer and timestamp retrieval failed.
1 comment:
I have used it and working pity fine, except for file name with blank space, it give some error.
I have corrected a bit to work with file name with blank space. Just change last few line as
'" /F "' + @filename +
'" /' + @direction
Post a Comment