SQL Packager - 6.4
Setting data packaging options - SQL Packager
The data packaging options are a set of advanced features that enable you to modify the behavior of SQL Packager when it packages data. For example, you can set options so that triggers are disabled when you upgrade a database and then, when the upgrade is complete, re-enable the triggers.
You can also set:
- schema options for packaging the structure of the database
- packager options for the .EXE or C# project
Disable foreign keys
Disables foreign keys before creating or upgrading the database, and re-enables them on completion. Note that in some circumstances foreign keys will be dropped and recreated rather than disabled and re-enabled.
Disable DML triggers
Disables DML triggers before creating or upgrading the database, and re-enables them on completion.
For example, you may want to disable triggers if you have a trigger defined on a table that inserts data into another table on INSERT, DELETE, or UPDATE; if you do not, the data in the tables will change as the package is run, which will cause unpredictable results.
Drop primary keys, indexes and unique constraints
Drops then recreates primary keys, indexes (including XML indexes and partitioned indexes), and unique constraints before creating or upgrading the database, and re-enables them on completion. If the primary key, index, or unique constraint is the comparison key, it cannot be dropped.
Select this option to ensure that unique constraints are not violated when data is inserted into tables or modified. When the constraints are re- created, the data is verified to ensure that no constraints have been violated. (If they have, the script will fail.)
Do not use transactions in synchronization SQL scripts
Removes transactions from the synchronization SQL scripts to produce SQL code that is more readable.
If this option is not selected and the synchronization script fails, the script is rolled back to the start of the failed transaction. If this option is selected, the script is not rolled back. This can be useful for detection of errors within a script.
Transport CLR types as binary
This option is used only for SQL Server 2008 and SQL Server 2005 databases.
If this option is selected, SQL Packager uses the binary representation of CLR types; if this option is not selected, SQL Packager uses the string representation. Note that string representations do not always contain the full information about the data.
Disable DDL triggers
This option is used only for SQL Server 2008 and SQL Server 2005 databases.
Disables DDL triggers before creating or upgrading the database, and re-enables them on completion.
Reseed identity columns
Reseeds identity values in the database you are updating after synchronization.
Trim trailing spaces
If the data in two columns differs only by the number of spaces at the end of the string, SQL Packager considers the data to be identical. This option does not apply to CLR or XML columns.
If this option is selected, trailing spaces are ignored when creating or upgrading databases.
Force binary collation
SQL Packager uses keys to compare rows. If the comparison key is a string, this option forces a binary collation on all string sorting.
Use checksum comparison
Performs a checksum prior to comparison. The data is compared only if the checksums differ. Note that if the data differs only in text or image columns, the checksums will be identical and SQL Packager will consider the data to be identical.
For SQL Server 2000, db_owner permissions are required.
Ignore case
When you are upgrading a database, SQL Packager will ignore the case of the object names, if this option is selected. For example, SQL Packager will consider [dbo].[Widget] to be the same as [dbo].[wIDgEt] and will compare the data in the two tables.
Note that if the databases that you are upgrading are running on a SQL Server that uses case-sensitive sort order, you should ensure that this option is cleared.
Ignore spaces
When you are upgrading a database, SQL Packager will ignore spaces in object names, if this option is selected. For example, SQL Packager will consider [dbo].[Widget Prices] to be the same as [dbo].[WidgetPrices] and will compare the data in the two tables.
Ignore underscores
When you are upgrading a database, SQL Packager will ignore underscores in object names, if this option is selected. For example, SQL Packager will consider [dbo].[Widget_Prices] to be the same as [dbo].[WidgetPrices] and will compare the data in the two tables.
Include views
If this option is selected, SQL Packager includes views in the upgrade. Generally, views can be updated only if the referenced rows are from a single table, and the referenced columns are simple (for example, they must not include identity columns or computed columns).
Include timestamp columns
If this option is selected, SQL Packager will compare timestamp columns when you are upgrading a database. Note that timestamp columns cannot be included in the data packaging script.
Include identity columns
Includes identity columns in the package. Note that if you do not select this option and an identity column is used as the primary key for a table, it will be included in the packaging script.
See also |
Was this article helpful?
SQL Packager
- Logging and log files
- Package executable cannot load zlib1.dll
- Creating executables that use the .NET 2.0 runtime (version 5)
- Creating a database for an earlier version of SQL Server
- SQL comparison and synchronization automation capabilities
- Reseed applying "incorrect" identity values
- "Value cannot be null" error creating data script
- DEFAULT_SCHEMA clause cannot be used with a Windows group
- Package created from script always creates database
- SQL Packager not keeping the READ_COMMITTED_SNAPSHOT SQL option ON
- Setting the Database Options for a New Database
- Package execution failing because the login already has an account under a different user name
- Invalid SQL when synchronizing an index to a scripts folder when data compression is specified
- Logging and log files
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Packager
- Activating your products
- Activating your products
- Getting help offline
- SQL Packager release notes - version 6.xx
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Packager