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.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Collation error

Author  Topic 

1sabine8
Posting Yak Master

130 Posts

Posted - 2010-02-11 : 03:45:02
Hi,
I wrote a Stored Procedure in SQL 2005, it runs perfectly.
Then i try to run this stored procedure from a dataset in ssrs2005 but i get the error "cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_general_CI_AI" in the equal to operation".
How can i solve it?
Thanks in advance

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-11 : 03:51:38
you can solve it by adding the following clause to both sides of comparison stameent

COLLATE DATABASE_DEFAULT
so if your comparison is

Col1 = Col2

make it

Col1 COLLATE DATABASE_DEFAULT = Col2 COLLATE DATABASE_DEFAULT



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -