Link to home
Start Free TrialLog in
Avatar of zachvaldez
zachvaldezFlag for United States of America

asked on

where to add statement in Crystal Report

I get the error 'cannot resolve the collation conflict between
"Latin1_General_BIN" and "SQL Latin1_General_CP1_CI_AS" in the equal to operation.

The solution was to add COLLATE DATABASE_DEFAULT in the join
I tested the SQL query and the error went away.

But where will I add this line to the Crystal Report?
Avatar of Ess Kay
Ess Kay
Flag of United States of America image

add it to the query or the tables that you import. right click on the side, open the data source, and edit the old data
Avatar of zachvaldez

ASKER

I don't follow the steps.
Go to Database Expert

User generated image
Find the query that you need to change, and change it there


hope that helps
What if it is a View?
pLS. PROVIDE SOME MORE DETAILS/
ASKER CERTIFIED SOLUTION
Avatar of vasto
vasto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I did it add the collation code in the stored procedure and it worked.
I wonder how it is done in a view? Can I alter the view? How about using the 'Command' as suggested above? thanks. there are options..
Avatar of Mike McCracken
Mike McCracken

You can use the SP SQL as the command so long as you start with the SELECT.  Don't include the SQL that creates or alters the SP.

mlmcc
If you are using a view then  you need to right click and "Modify"  the view and add the collation order clause to the join in the same way as in the stored procedure. You can recreate everything in a command , but this is probably not necessary
Well explained