Contents 

AdeptSQL Diff Reference
AdeptSQl Diff versions, history and milestones
Supported versions of MS SQL Server
Getting started
Connecting to databases
Scanning available servers
Saving and opening comparisons
Running from command line
Diff in portable mode
Working with the schema
Viewing schema differences
Ignored Differences
Comparing objects side-by-side
Dragging and dropping schema items
Using schema filters
Generating comparison reports
Customizing the reports
Executing the SQL
SQL errors and warnings
Transaction support
Keyboard shortcuts
Editing commands and keyboard shortcuts
Using keyboard templates
Choosing debugger's key mapping
Comparing table data
DataDiff overview
DataDiff configuration dialog - table-level
DataDiff configuration dialog - columns
Special situations comparing data
Exporting data to Excel
DataDiff Reports
Column configuration file
Configuring AdeptSQL Diff
Options dialog
Schema Scan
Selective Loading
Comparison
Name Comparison
Code Comparison
User-defined types
Indexes and Statistics
Permissions and XProps
Synonyms
Other details to ignore
Scripting
General logic
Side-by-side scripting
Formatting
Identifiers
Schema Level
Tables
Constraints
Default Values
Procedures, Views, etc
Visuals
Text Fonts
Schema Tree
Summary collections
Side-by-Side View
Suppressed dialogs
Data comparison options
General
Scripting
Column Config File
Using COM Automation interface
Automating schema comparison
Automating data comparison
Licensing and contact info
Registration of AdeptSQL Diff
License conditions
Contact information

AdeptSQL Diff Online Help

Prev Page Next Page

Options / Comparison / Indexes and Statistics

Top  Previous  Next

opt_StatsSTATISTICS in MS SQL Server are objects somewhat similar to indexes and occupying the same namespace. They help the server to optimize queries. Statistics may be created either explicitly or by the server itself.  In the Diff, you can synchronize statistics or ignore them, as described below:

The "Don't load" setting means the Diff will totally ignore any STATISTICS, so it won't even be able to resolve dependencies if a particular STATISTICS object blocks changes to the table.  We recommend that you don't use this setting until you know exactly what you are doing.

With the "Ignore changes" option, the explicitly specified STATISTICS will be loaded and compared, but any changes in them will not propagate up the schema tree. So if a pair of tables only differs in STATISTICS, it will be marked as unchanged and the Diff won't try to synchronize them. When there are changes in columns, the Diff will take the statistics into account, removing them when necessary and re-creating afterwards.  Note that it will try to "retain" statistics, that is re-create them as they were in the target database, not in the source one.  You still can synchronize STATISTICS if you specifically select any of them of the entire "Statistics" collection in the schema tree.

The "Compare and synchronize" option tells the Diff to treat STATISTICS as any other schema object to be compared and synchronized.

Note that regardless of the settings above,  the Diff never loads any statistics automatically created by the server

The "Ignore names..." checkboxes tells the Diff that STATISTICS or INDEXes defined on the same combination of columns are equivalent regardless of their names.

 

   
Converted from CHM to HTML with chm2web Standard 2.85 (unicode)