We have a table with a column named PLAN which is a keyword. We are using brackets but the query still throws an error. Weird thing is the query still executes. The error makes the .net web context explode of course. Any ideas?
USE [SomeDB]
UPDATE [SomeTable]
SET [SomeTable].[PLAN] = 2
WHERE [SomeTable].[RECNUM] = 1
Microsoft SQL Server 2008 (SP3)
It should work. Must be something else.