- Simply download the ReservedWords.csv from http://richardlees.com.au:8080/dropzone/SQLReservedWords.csv Or if you prefer, copy the words from SQL Server books online and load them into a table.
- Load the words into this table
create table ReservedWords (ReservedWord varchar(128), ReserveWordList varchar(128)) - Run the following query
select o.name [Object Name],c.name [Column Name], w.ReserveWordList
from sys.columns c
inner join coreddsdevtemp..ReservedWords w on w.ReservedWord=c.[name]
inner join sys.objects o on c.object_id=o.object_id and o.type NOT IN ('S','IT')
order by 1,2
I should add that it isn't fatal to have reserved words in your columns. It just means that you might have to use delimiters around your column names.
No comments:
Post a Comment