03Explorer
Technical User
I have two tables
TABLE: TableA
GUID
TABLE:TableB
GUID
Variable
I created new column in TableA [CT] to be a substring from TableB [Variable]
I want to update TableA with the substring from TableB, but when I use straight sql I get error message [COLOR=red yellow]cannot resolve the collation conflict between "Latin1_General_BIN" and "SQL_Latin1_General_CP1_CI_AS" in the equal to peration.[/color]
Can I perform this with SSIS to avoid the conflict? Or is there a better way to write the following sql code...
TABLE: TableA
GUID
TABLE:TableB
GUID
Variable
I created new column in TableA [CT] to be a substring from TableB [Variable]
I want to update TableA with the substring from TableB, but when I use straight sql I get error message [COLOR=red yellow]cannot resolve the collation conflict between "Latin1_General_BIN" and "SQL_Latin1_General_CP1_CI_AS" in the equal to peration.[/color]
Can I perform this with SSIS to avoid the conflict? Or is there a better way to write the following sql code...
Code:
UPDATE TableA
set TableA.CT = (SELECT
Substring(tb.Variable,3,2)
FROM
TableB tb (nolock)
WHERE
tb.GUID = TableA.GUID)
WHERE
TableA.GUID = (SELECT
tb.GUID
FROM
TableB tb (nolock)
WHERE
TableA.GUID = tb.GUID)