SQL Compare

Latest version: 10.0

SQL Compare

Knowledge Base

Synchronization scripts may be in incorrect version of SQL syntax

Category: How do I?
Date: 04 Mar 2009
Product: SQL Compare
Version: 4 - 7
SQL Compare produces a synchronization script in SQL 2005 format when it should be in SQL 2000 format, and vice-versa.

SQL Compare automatically creates a script that is compatible with the target SQL platform. For instance, if this is determined to be SQL Server 2000, the script will use sp_addlogin to create a login, and in SQL 2005, it will use CREATE LOGIN. CREATE LOGIN will fail when run on SQL 2000 and sp_addlogin will error on SQL 2005.

SQL Compare chooses the script format based on the SQL platform on the right-hand side on the first screen of the comparison project wizard. If the database platform is SQL 2000, the script will be compatible with SQL 2000, regardless of the synchronization direction. Note that the database on the right needs to be the target PLATFORM, rather than a database using compatibility mode. For example, putting a SQL 2005 server on the right and connecting to a SQL 2000 compatible database (compatibility mode 80) will not result in a SQL 2000-compatible script.

Document ID: KB200705000021 Keywords: Compare, SQL, Compatibility, CREATE, LOGIN,HowTo, script, failure, synchronization

Was this article helpful?

Search support
Forums
Visit the SQL Compare forum.

SQL Compare

all SQL products

all products