TSqlParser.ValidateIdentifier Method

Returns whether a name is a valid SQL identifier.

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

Syntax

'Declaration
Public Function ValidateIdentifier ( _
    name As String _
) As Boolean
public bool ValidateIdentifier(
    string name
)
public:
bool ValidateIdentifier(
    String^ name
)
member ValidateIdentifier : 
        name:string -> bool 
public function ValidateIdentifier(
    name : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the provided name is a valid SQL identifier; otherwise, false.

.NET Framework Security

See Also

Reference

TSqlParser Class

Microsoft.Data.Schema.ScriptDom.Sql Namespace