A logfile SQLAGENT.out is created and updated three times a minute with:
 SQLserver Errror: 446, Cannot resolve collation conflict for equal to operation. [SQLSTATE 42000].
I have tryed to find an explanation to this error and set the collation on the databases as recomended.
What can I do?
Thanks in advance
be aware that a field in a table can have a different collation than the default collation for a database.
1) find the query/command causing the trouble
2) check all the fields and their collation
3) check also the collation of tempdb
There is also a Collate command, but I haven't used it yet except for scripting tables.
The thing is that the logg is created all the time. No queries etc are running.
In this application there is no need for different collation for each field. Is there a way to set all collations to
<database default> to each field/table in a database without going throw all of them?
think you have to go through all fields...
like jo said: single field in a table can have different collation from the table. There is no way
Of course you can do some reverse enginering: since when does this message appear in logs? which table\field was created then?
don't know a command that can set collation for all objects in one time. option might be to make a query whith a cursor that loop s through all sysobjects...nested cursor that finds all columns in a table and then execute an alter database command..