Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
bielen
Yak Posting Veteran
97 Posts |
Posted - 2008-09-15 : 15:27:04
|
| I'm in the process of moving various scripts from SQL2000 to 2005.I have the following SQL statement:SELECT QA_FailedVerify.WeekEndingDateFROM QA_FailedVerify INNER JOINQA_Product_Groups ON QA_FailedVerify.PRODUCT = QA_Product_Groups.productNameWHERE (QA_Product_Groups.groupName = 'TestProduct') AND (QA_FailedVerify.ReleaseType = 'M')GROUP BY QA_FailedVerify.WeekEndingDateORDER BY QA_FailedVerify.WeekEndingDateThe scripts works fine in SQL 2000, but SQL 2005, I receive the following error message:Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_Prf_CP1_CI_AS" in the equal to operation.The A_FailedVerify.PRODUCT field is varchar(50) and QA_Product_Groups.productName is nvarchar(50). I tried working with COLLATE, but its not working.Any suggestions?Thanks |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-15 : 23:54:19
|
| just collation of one side column to be equal to other side column usingleftCol=rightcol collate <left collation> |
 |
|
|
|
|
|