I have come across a situation where a column name in the SQL database is [column name] and I am trying to update it by that column.
Selecting is easy: Select [column name] from MyDatabase.
I am trying to do this (parameterized): UPDATE MyDatabase WHERE [column name] = @[column name]
the errors say: column name does not exist: @column
I cant just change the name in the database because it has been around for a while and it will most likely break a bunch of stuff.
Thank you all for your help!
Dave