We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Cannot resolve collation conflict for equal to operation

COHFL
COHFL asked
on
Medium Priority
412 Views
Last Modified: 2012-05-11
Hi there,
I have a 2000 SQL Server database that stop it working right after it was copy from another SQL server. the error im getting  SqlException: Cannot resolve collation conflict for equal to operation.
It seems like the two collation are some what different but how do i fixed my new database in a effective way?
thanks,
COHFL
Comment
Watch Question

DB Expert/Architect
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Aaron ShiloChief Database Architect
CERTIFIED EXPERT

Commented:
hi

use the COLLATE function on the column in your where command

select ..
from ..
where columnA = columnB collate Your_colation_type.

http://msdn.microsoft.com/en-us/library/ms184391.aspx
Daniel_PLDB Expert/Architect
Top Expert 2011

Commented:
I was suggested by
I have a 2000 SQL Server database that stop it working right after it was copy from another SQL server.
When you are experiencing problems with queries you should use COLLATE as stated by ashilo.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.