Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

Can anyone know how to solve this error?


Implicit conversion from data type varchar(max) to varbinary(max) is not allowed. Use the CONVERT function to run this query.

query:
SQL
ALTER procedure [dbo].[pupusrresume]
(
@loginemailid varchar(30),
@resume varchar(MAX)
)
as
begin
update tbl_register set
resume=@resume
where 
loginemailid=@loginemailid
end
Posted
Updated 16-Feb-12 1:41am
v2

You are using the wrong type specification for one of your variables. Check your Database table definition and correct your query.
 
Share this answer
 
SQL
ALTER procedure [dbo].[pupusrresume]
(
    @loginemailid varchar(30),
    @resume varbinary(MAX)
)
as
begin
    update tbl_register set
    resume=@resume
    where 
    loginemailid=@loginemailid
end
 
Share this answer
 
v2
Hi,

you have declared @loginemailid and @resume both as varchar, but according to your error message it looks like both or any one of the concerned column(s) in table tbl_register is of varbinary type.
either you change the data type of concerned variable or use Convert/cast to change datatype.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900