xSQL Schema Compare SDK for SQL Server version 12
GetEnableConstraintsScript(SqlDatabase,ComparisonOptions) Method

The new target database that overrides the default one.
The new options.
Returns the script that enables the foreign keys and check constraints with the specified target database and options.
Public Overloads Function GetEnableConstraintsScript( _
   ByVal targetDatabase As SqlDatabase, _
   ByVal options As ComparisonOptions _
) As System.String
public System.string GetEnableConstraintsScript( 
   SqlDatabase targetDatabase,
   ComparisonOptions options
public: System.string* GetEnableConstraintsScript( 
   SqlDatabase* targetDatabase,
   ComparisonOptions* options


The new target database that overrides the default one.
The new options.
The script should run after the transaction of the main synchronization script commits.

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


ScriptManager Class
ScriptManager Members
Overload List



┬ęCopyright 2022 xSQL Software. All Rights Reserved.

Send Feedback