i'm just getting started (transititioning to) SQL Server, unfortunately the company has developers that have been doing all the table scripting, etc. on a cursory glance i found several tables that have column names that are also SQL reserved words. in DB2 for IBM i, i could just query the system catalogs for reserved words & am wondering if anyone has a script(or stored procedure) that will do that for SQL Server (currently on version 2012) my goal is to clean this up and have the tables rebuilt with proper column names and a script would be orders of magnitude faster than looking at each table's column listing.
2条答案
按热度按时间wqsoz72f1#
Stripped and modified from a validation routine
For SQL Server's Reserved Words
rryofs0p2#
Here is the list of reserved words https://msdn.microsoft.com/en-us/library/ms189822.aspx
You could copy these into a text editor or something then clean it up a little. Then throw them into a table then use that table as a reference.