Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Expression type int is invalid for COLLATE clause Expand / Collapse
Author
Message
Posted Tuesday, December 17, 2013 1:42 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, February 17, 2014 6:54 AM
Points: 36, Visits: 99
Hello
I use COLLATE DATABASE_DEFAULT to solve error

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.

But I have this error

Expression type int is invalid for COLLATE clause

Could you help me?
Post #1523563
Posted Tuesday, December 17, 2013 2:05 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 6:59 AM
Points: 232, Visits: 159
Hi, it seems that one of the operator is a numeric int type and not a string, thus collate cannot work, maybe an implicit conversion, can you please send the whole statement?
Thanks!
Post #1523567
Posted Tuesday, December 17, 2013 4:06 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, February 17, 2014 6:54 AM
Points: 36, Visits: 99
Yes you are right
collate cannot work on string
thanks
Post #1523595
Posted Tuesday, December 17, 2013 6:41 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, April 17, 2014 9:33 AM
Points: 6,754, Visits: 12,854
bkshn (12/17/2013)
Yes you are right
collate cannot work on string INT thanks


“Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Exploring Recursive CTEs by Example Dwain Camps
Post #1523662
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse