Setup failed.
Exception:
An error occurred during the execution of the SQL file ‘InstallRoles.sql’. The SQL error number is 446 and the SqlException message is: Cannot resolve collation conflict for equal to operation.
Cannot resolve collation conflict for equal to operation.
I recently had this problem while trying to setup the roles & memberships gubbins on a database using the aspnet_regsql tool on the v2 .net framework.
This turned out to be because this was a SQL 2005 database which we had imported from a third party, produced on SQL2005. The SQL2005 database had a collaction of SQL_Latin1_General_CP1_CI_AS while our sql 2000 box’s default collection was Latin1_General_CI_AS.
The fix was simple; having backed up our database (!) simply run this command;
Alter Database testdatabase Collate Latin1_General_CI_AS
This converted the database to the same Latin1_General_CI_AS collation as the server’s default, and allowed the aspnet_regsql to do it’s job unhindered!
NOTE: If you’ve ran aspnet_regsql once already before correcting your collation (which i would imagine you probably did!), make sure you run it again in remove mode before running a final time in install mode, as the first time it runs it will bomb out after creating some of the tables already leaving you with tables in your database still using the old collation!
Related posts:
- Setting up session state database on sql server
- ASP.net Roles and Membership installed to local SQL Express 2008 MDF file
- SSIS / DTS packages violating referential integrity
- Wizard generated SSIS package dumps critical files in Temp folder- breaks after a log out!
- Scott Klueppel’s Blog – Error Log RSS Feed










