SQL2K5
The error is:
Msg 208, Level 16, State 6, Procedure tr_myTable_INSERT, Line 33
Invalid object name 'tr_myTable_INSERT'.
Now, myOtherTable has no triggers on it, and certainly not this trigger.
The trigger's name in the ALTER TRIGGER statement is definitely the right one, I am not trying to alter a non-existing trigger.
The change I made was literally tiny - I changed a WHERE clause from "where myColumn = @variable1" to "where myColumn = @variable2"
Any thoughts? I'm sure I'm missing something blindingly obvious, but I'm stumped!
Thank you
~LFCfan
The error is:
Msg 208, Level 16, State 6, Procedure tr_myTable_INSERT, Line 33
Invalid object name 'tr_myTable_INSERT'.
Code:
ALTER TRIGGER tr_myTable_INSERT
ON [mySchema].[myTable]
FOR INSERT
AS
.....
[i](line 33)[/i] INSERT INTO mySchema.myOtherTable SELECT ...
.....
Now, myOtherTable has no triggers on it, and certainly not this trigger.
The trigger's name in the ALTER TRIGGER statement is definitely the right one, I am not trying to alter a non-existing trigger.
The change I made was literally tiny - I changed a WHERE clause from "where myColumn = @variable1" to "where myColumn = @variable2"
Any thoughts? I'm sure I'm missing something blindingly obvious, but I'm stumped!
Thank you
~LFCfan