Colation Error


Hi,

When I try to run my Stored procedure I get the coalation error on the line below:
The error is "Cannot resolve collation conflict for equal to operation."
Any help will be appreciated?

Update ##AO_Auction_TTbl1 set  OrderAuthByEmailid=E.LOGUSER_MAIL_ID
sgaurav7Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sasapopovicCommented:
You should try using "collate database_default". In your case it would be something like:


Update ##AO_Auction_TTbl1 set  OrderAuthByEmailid collate database_default = E.LOGUSER_MAIL_ID collate database_default

I can not check that statement here but if you get any more error messages, please try it with:

Update ##AO_Auction_TTbl1 set  OrderAuthByEmailid = E.LOGUSER_MAIL_ID collate database_default

I hope this is what you need.

Regards,
Sasa
sgaurav7Author Commented:
I tried both but still the same error
nost2Commented:
There is something missing from your update statement, isn't there? You have a where statement and that is where you need to add collate parameters:

Update ##AO_Auction_TTbl1 set  OrderAuthByEmailid=E.E.LOGUSER_MAIL_ID from some_table E where e.E.LOGUSER_MAIL_ID collate database_default = ##AO_Auction_TTbl1.OrderAuthByEmailid collate database_default

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.