如果使用TEXTPTR函数和UPDATETEXT函数存储image类型数据?
以下是我的写法,但是要报以下错误:
实时错误'-2147217900 (80040e14)'
向UpdateText函数传递了Null textptr(text,ntext或image指针).
----------------------------------------------
CREATE PROCEDURE YGTPSAVE
@ygtp image
as
DECLARE @ptrval binary(16)
SELECT top 1 @ptrval = TEXTPTR(EmpPhoto) FROM tableEmployee where EmpCode='E001'
UPDATETEXT tableEmployee.EmpPhoto @ptrval 0 0 @ygtp
GO