I work for a software house and produce a SQL Server based product. As part of the next releases upgrade, I need to release an 'upgrade database' that will be used during the upgrade process to assist with the upgrade of the 'customer database'. Whilst I can choose the collation of the 'upgrade database' I have no way of knowing what collation the 'customer database' will use.
I need to run a query that does something like this
SET <customer_database.table.field> = <upgrade_database.table.field1>
FROM <upgrade_database.table>, <customer_database.table.field>
WHERE <customer_database.table.field> = <upgrade_database.table.field2>
AND other criteria
When it executes, presumably becuase of the different collation settings, I get the error :-
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
Note the upgrade database is a generic database that will be supplied by us as the software house. Thus we no chance to change the upgrade database collation settings for each customer. Obviously we cant change the customer database collation.
Hence I'm guessing there must be some clause I can add to the SQL to resolve the collation problem.
Please help...its urgent
Thanks in advance