missing quotes around reserved words
Posted: Mon 19 Dec 2011 18:22
The database scripts generated by ED (for SQL server) are not being quoted correctly - for example:
The word "Type" is a reserved word and must be quoted as "[Type]" on SQL Server.
I personally would recommend consistently quoting all column and table names in generated SQL scripts to avoid this issue - also makes the scripts more legible.
Code: Select all
--
-- Altering a table dbo.Task
--
ALTER TABLE dbo.Task
ALTER COLUMN Type VARCHAR(MAX) NOT NULL
GO
I personally would recommend consistently quoting all column and table names in generated SQL scripts to avoid this issue - also makes the scripts more legible.