Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion problem
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01337038
Message ID:
01337047
Views:
14
I'm getting the same error.

Here is what I'm sending

exec RegistrationInsert @SiteID=1,@PersonType=N'B',@FirstName=N'friends', other parms, @DefaultPicture=NULL

>>Hi everybody,
>>
>>I'm getting this error "Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query."
>>
>>I pass NULL as my parameter for varbinary(max). In the stored procedure code I use ISNULL(@DefaultPicture, CONVERT(varbinary(max),''))
>>
>>What should I do to fix the problem?
>>
>>Thanks in advance.
>
>
>   ISNULL(@DefaultPicture, CONVERT(varbinary(max),0x0))
>
>
>or even:
>
>   ISNULL(@DefaultPicture, 0)
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform