SqlScriptComparer.Compare Method (String, String)

Compares two scripts.

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)

Syntax

'Declaration
Public Function Compare ( _
    firstScript As String, _
    secondScript As String _
) As Boolean
public bool Compare(
    string firstScript,
    string secondScript
)
public:
bool Compare(
    String^ firstScript, 
    String^ secondScript
)
member Compare : 
        firstScript:string * 
        secondScript:string -> bool 
public function Compare(
    firstScript : String, 
    secondScript : String
) : boolean

Parameters

  • firstScript
    Type: System.String
    The first complete script to compare.
  • secondScript
    Type: System.String
    The second complete script to compare.

Return Value

Type: System.Boolean
True if the scripts are functionally equivalent; otherwise, false.

.NET Framework Security

See Also

Reference

SqlScriptComparer Class

Compare Overload

Microsoft.Data.Schema.ScriptDom.Sql Namespace