If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Cannot resolve collation conflict for equal to operation.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-02, 09:04
Diogo Diogo is offline
Registered User
 
Join Date: Sep 2002
Location: Brazil
Posts: 56
Cannot resolve collation conflict for equal to operation.

Hy Guys!

I`m having a new problem today!
I Have two Databases, with the same collation configuration. (SQL_Latin1_General_CP1_CI_AS). But when I execute this qery, I got the collation message error:


select * from Cheque C
where
NOT EXISTS
(SELECT A.cmpCod + A.banCod
FROM dbCorporativo.dbo.Agencia A
WHERE
C.chqCmc7Compe + C.chqCmc7Bco
=
A.cmpCod + A.banCod
)

Result
Cannot resolve collation conflict for equal to operation.


This query executes with succes when I execute it like this:
select * from Cheque C
where
NOT EXISTS
(SELECT A.cmpCod + A.banCod
FROM dbCorporativo.dbo.Agencia A
WHERE
C.chqCmc7Compe + C.chqCmc7Bco
=
A.cmpCod + A.banCod COLLATE SQL_Latin1_General_CP1_CI_AS
)



Some suggestions? Since the configuration for the two databases are identical?
__________________
Diogo Hudson Dias
DBA - SQL 6.5/7.0/2000
ASBACE - ATP
Reply With Quote
  #2 (permalink)  
Old 10-10-02, 09:05
Diogo Diogo is offline
Registered User
 
Join Date: Sep 2002
Location: Brazil
Posts: 56
Ooopppss!! WRONG FORUM!

Sorry guys!
__________________
Diogo Hudson Dias
DBA - SQL 6.5/7.0/2000
ASBACE - ATP
Reply With Quote
  #3 (permalink)  
Old 03-04-03, 22:02
Matg Matg is offline
Registered User
 
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 6
Diogo,

The model database must have different collation settings, temp databases / tables obtain/inherit the model database settings. When you specify a collation it sets the collation and thus there are no problems.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On