TSqlParser.ValidateIdentifier Method (String)

 

Applies To: SQL Server 2016 Preview

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

public bool ValidateIdentifier(
    string name
)
public:
bool ValidateIdentifier(
    String^ name
)
member ValidateIdentifier : 
        name:string -> bool
Public Function ValidateIdentifier (
    name As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the provided name is a valid SQL identifier; otherwise, false.

See Also

TSqlParser Class
Microsoft.SqlServer.TransactSql.ScriptDom Namespace

Return to top