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)


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


  • 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


SqlScriptComparer Class

Compare Overload

Microsoft.Data.Schema.ScriptDom.Sql Namespace