ArcPy has the function ValidateTableName to remove invalid characters.
Takes a table name and a workspace path and returns a valid table name for the workspace. An underscore "_" will replace any invalid character found in the table name and will honor the name restrictions for the workspace. The table name restrictions depend on the specific RDBMS used.
Is there a similar function to clean a table name for .NET?
Or is there a list of all invalid characters and words?
I need a way to ensure users don't enter invalid characters when entering a layer name.
I don't think SDK has a method to validate table names.
However, here are some chars that make the table/feature class name invalid - white space( ), dot (.), dash(-), @, &, * , etc.
The table name restrictions depend on the specific RDBMS used.
Thanks for the reply but I was hoping for an answer that was a bit more definative.
I'm using the default geodatabase and whilst I've written my own function to remove non-alpha numeric characters and prevent the table name beginning with a numeral, I was hoping there was somthing inbuilt since the documentation is lacking sufficient explanation on the table naming rules.