In a web application, in C#.NET I have a screen where the user enters a text in a textbox, and this is used to build a column in the SQL Server. Basically I would like to validate if the entered string is a valid Sql server column name. I believe a string that contains only alpha numeric characters and/or a underscore would be a valid column name.
How do I build this regular expression or is there any other way to do this validation?
Please help. Thanks in advance.
Start Free Trial