SQL Compare

Latest version: 10.0

SQL Compare

Knowledge Base

DEFAULT_SCHEMA clause cannot be used with a Windows group

Category: Troubleshooting & error messages
Date: 24 Mar 2009
Product: SQL Compare
When running a schema synchronization script, the following error may occur, and the synchronization will fail.
The DEFAULT_SCHEMA clause cannot be used with a Windows group or with principals mapped to certificates or asymmetric keys.

The cause of this issue is that SQL Compare and SQL Packager cannot reliably determine whether a Windows user is an actual user or a group. Windows groups can be mapped to SQL Server users just as Windows users, but a default schema cannot be specified for a Windows group. Unfortunately, not specifying a default schema for a Windows user can lead to other problems.

The only possible workaround for this issue is to note the name of the group in the error dialog, and remove that SQL Server user from the synchronization.

Document ID: KB200903000374 Keywords: SQL, Compare,default_schema,group,principals

Was this article helpful?

Search support
Forums
Visit the SQL Compare forum.

SQL Compare

all SQL products

all products