Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TSqlParser.ValidateIdentifier Method

SQL Server 2012

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)
Public Function ValidateIdentifier ( _
	name As String _
) As Boolean
Dim instance As TSqlParser 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.ValidateIdentifier(name)


Type: System.String
The string to be validated.

Return Value

Type: System.Boolean
true if the provided name is a valid SQL identifier; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.