I have a recently created SQL database for actions called "Actions", there is already an existing database on the same server for "Employees".
I wish to pull the Employee name via their staff number into the actions database (every action has a "By_Who" field of same data type as the staff number)
I have created a view in the actions database called V_Employees it lists each employee name along with StaffNo. It runs fine.
When I try to create an inner join with tblActions in the "Actions" database I get the following error:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CS_AS" in the equal to operation.
When I checkout the collation between the two tables (on different databases) I get the following:
In tblActions: PS_ByWho = SQL_Latin1_General_CP1_CS_AS
In V_Employees: StaffNo = SQL_Latin1_General_CP1_CI_AS
I can see what the problem is but I am not very ofay with collations, what is the best way to resolve it (I would be interested to know how it came about also if possible). I created both databases, one a while ago, one more recent.
I wish to pull the Employee name via their staff number into the actions database (every action has a "By_Who" field of same data type as the staff number)
I have created a view in the actions database called V_Employees it lists each employee name along with StaffNo. It runs fine.
When I try to create an inner join with tblActions in the "Actions" database I get the following error:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CS_AS" in the equal to operation.
When I checkout the collation between the two tables (on different databases) I get the following:
In tblActions: PS_ByWho = SQL_Latin1_General_CP1_CS_AS
In V_Employees: StaffNo = SQL_Latin1_General_CP1_CI_AS
I can see what the problem is but I am not very ofay with collations, what is the best way to resolve it (I would be interested to know how it came about also if possible). I created both databases, one a while ago, one more recent.