BUG: Rename Column Causes Error 207 After Trigger Re-resolutionID: Q214592
|
If a column on a table is renamed and there is a trigger on the table, you may receive the following error after re-resolution of the trigger:
Msg 207, Level 16, State 2 Invalid column name '<old_column_name>'.
To work around this problem, drop and re-create triggers after a column name change.
Microsoft has confirmed this to be a problem in SQL Server.
Re-resolution is the process of updating the existing query tree and invalidating any query plans in the cache. Re-resolution occurs when one of the tables changes in such a way that the query tree stored in sysprocedures might be invalid (for example, if the datatypes, column offsets, object IDs, or other parts of the table have changed).
Re-resolution can be triggered by various activities, most of which are controlled by SQL Server, not the procedure owner or the system administrator (SA). Procedure re-resolution occurs after any of the following:
Additional query words: replication repl datatype data type types
Keywords : kbbug6.50
Version : winnt:6.5
Platform : winnt
Issue type : kbbug
Last Reviewed: January 19, 1999