I'm trying to do the following,
DECLARE @.Data varbinary(16)
SET @.Data = (select imageCol from Table1 where id=3)
As image datatype returns varbinary value, so I want to store image col value to a varbinary variable(or any other type variable, eg., varchar). But getting following error,
========================================
Server: Msg 279, Level 16, State 3, Line 2
The text, ntext, and image data types are invalid in this subquery or aggregate expression.
========================================
Is there anyway to store image datatype value to a variable?
Cheers.
Try this:
select @.Data=imageCol from Table1 where id=3
mbanavige wrote: Try this:
select @.Data=imageCol from Table1 where id=3
Thanks a lot.
No comments:
Post a Comment