Pre-synchronization warnings and messages in ApexSQL Data Diff

Applies to

ApexSQL Data Diff

Summary

Pre-synchronization warnings and messages in ApexSQL Data Diff are located in the Summary and warnings step of the Synchronization wizard that provides potential warnings and messages to a user, before running the SQL data synchronization process on a destination data source.

Description

Before getting to the above-mentioned step, data sources need to be set in the New project window and the Compare button needs to be clicked:

Data sources tab in the New project window for setting up data sources for SQL data synchronization

Quick tip icon

Quick tip:

If additional filtering of objects/data is needed before the comparison process is started, check out the article on how to narrow a data comparison to affected rows only

Upon finished comparison process, the list of all objects with different data will be shown in the Results grid of the main application window:

Results grid in which objects/data are selected for SQL data synchronization

Check all desired objects and their corresponding rows from the Data difference view panel and click the Synchronize button to initiate the Synchronization wizard:

The Home tab in the main application window from which SQL data synchronization is initiated

The Synchronization direction is the first step in the Synchronization wizard and it provides information about loaded data sources and points which one will be synchronized:

Synchronization direction step for SQL data synchronization

The next step is the Output options step in which users can choose between different output actions and options that go alongside with the chosen action. Options for the chosen action can vary depending on the destination data source that will be synchronized.

Quick tip icon

Quick tip:

Warnings and messages will be shown regardless of the selected output action

In the example below, the Create synchronization script action is selected from the Action drop-down list and it contains an option to Save script to file or to Open script in editor:

Output options step in the Synchronization wizard where desired action is chosen for creating a SQL data synchronization script of performing direct synchronization on specified destination source

At the end of the Synchronization wizard, the Summary and warnings step is shown in which any potential issues in the synchronization process will be shown as warnings and appropriate messages will be shown. In this case, we have two high warnings:

Summary and warnings step in the Synchronization wizard which contains pre-synchronization warnings and messages

Additionally, all warnings can be exported with the click on the Export button on the upper-right side of the Synchronization wizard window in one of the below-listed output formats:

  • CSV file
  • Excel spreadsheet
  • HTML page
  • PDF document
  • Text file
  • XML file

When high warnings are shown in the Summary and warnings step and the Create script button is clicked, the Warnings dialog will pop-up to remind users again before creating SQL data synchronization script:

Warnings dialog shown in case of high warnings before creating the SQL data synchronization script

In the end, let’s review the below list with all warnings and messages that could be shown in the Summary and warnings step of the Synchronization wizard, followed with description for each of them:

Priority

Warning

Message

Low warning icon

Low

Differences cannot be synchronized because no columns in the destination object can be updated

Medium warning icon

Medium

Source column [{0}] allows NULL values, while destination column [{1}] does not

This may cause script to fail if any of source rows contains Null value for [{0}] column

High warning icon


High

Destination table {0} does not have any clustered index

SQL Azure Database does not allow inserting data into table without clustered index

High warning icon

High

CLR type of destination column [{0}] ({1}) differs from CLR type of source column [{2}] ({3})

This may cause script to fail

High warning icon

High

Comparison option “Ignore Blob columns” is applied while destination column [{0}] does not allow NULL values

This may cause script to fail if destination column does not have default value specified

High warning icon

High

Length of destination column [{0}] is less than length of source column [{1}]

This may cause data to be truncated for char, nchar, nvarchar columns

High warning icon

High

Precision of destination column [{0}] is less than precision of source column [{1}]

This may cause overflows for floating types columns

High warning icon

High

Scale of destination column [{0}] is less than scale of source column [{1}] in source

This may cause rounding for floating types columns

High warning icon

High

Size of destination column [{0}] is less than size of source column [{1}]

This may cause data to be truncated for Time, Date, DateTime columns

High warning icon

High

Type of destination column [{0}] ({1}) differs from type of source column [{2}] ({3})

This may cause script to fail