I created a database trigger last week in our QA environment to track schema and database changes. I am trying to remove the tables, and I have removed all the triggers but when I try to drop the last table I get the following error
Msg 208, Level 16, State 1, Procedure trg_Database_changes, Line 8 [Batch Start Line 2]
Invalid object name 'Audit_logs'
This makes me think I still have a trigger out there but I can't find it. I have looked in every database.
Any ideas?
USE [master]
GO
IF EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[Audit_logs]') AND type in (N'U'))
DROP TABLE master.[dbo].[Audit_logs]
GO