Is it a programmatic way to get SQL keywords (reserved words)
问题 I need to validate the Name of a SQL column, which is created programmatically... There whould be 2 validation rules: The Name shouldn't be a C# keyword The Name shouldn't be a SQL keyword (SQL Server 2008 R2) The solution for 1st rule it's nice: The CSharpCodeProvider class has the IsValidIdentifier method which makes the implementation of validation easy. (ex: string myColumnName = "blabla"; var isValid = _cSharpCodeProvider.IsValidIdentifier(myColumnName); ) The solution for 2nd rule it's