Unfortunately, I created a table called 'sysmessages' in SQL Server 2008. When I restored the DB to SQL Server 2012, I realized that I have two Tables called 'sysmessages'.
I don't want to change my table name because it has been used in the code.
Can I remove only from specific database system table?
2条答案
按热度按时间kuhbmx9i1#
select * from sys.sysmessages
, you will address it likeselect * from dbo.sysmessages
edit - no. 2. is not applicable in SQL 2012, however it is tested and working in SQL 2008R2
zpgglvta2#
You cant drop system tables,your best bet is to change your code