TSqlParser.ValidateIdentifier Method

Returns whether a name is a valid SQL identifier.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
Public Function ValidateIdentifier ( _
    name As String _
) As Boolean
'Usage
Dim instance As TSqlParser 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.ValidateIdentifier(name)
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.

See Also

Reference

TSqlParser Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace