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.
Syntax
'Declaration
 
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
) 

Parameters

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

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

Reference

ScriptManager Class
ScriptManager Members
Overload List

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback