Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all visitors
i have problem with join tables in sql server 2008.
i have created 2 tables(customer and purchase)
these tables link by using customerCode(primary in Customer Table) and customerCode(Foregn in Purchase Table).
This is my query:
SQL
select*
from Customer T0
join Purchase T1 on T0.customercode=T1.customercode


When i execute, it display error like this:

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AI" in the equal to operation.

Anybody know how i can join them?

Best Regards,
Posted

By making your two tables have the same character set. That's what the error message means.
 
Share this answer
 
Comments
soeun tony 5-Aug-11 22:00pm    
Thanks for your reply
Could you tell me how i can make my table with the same character?
(customercode in customer table and customercode in purchase table have the same data type "nvarchar(10)")

Best Regards,

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



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