THANK YOU!! The key was 'return result sets'. I didn't understand that the default behavior (if that's the right term) of SELECT is to return a result set. The trigger needed a count of rows, but didn't need to return the result set. I changed to select into a temp table and everything works...
Thanks for your response. I played around with SET NOCOUNT - unfortunately, to no avail. The trigger does 'fail' (at least in EM) immediately after the first 'Select' - even with SET NOCOUNT ON as the line before the Select. EM has the problem even when only change is a field which is not...
I don't understand why a trigger works fine when fired from a statement in the Query Analyzer, but when fired by making a change to the table directly in the EM I get ODBC errors, first 'SqlDumpExceptionHandler: Process x generated fatal exception'. Then 'Communication Link Failure'. Since the...
When adding records to a table in the Enterprise Manager, I normally get the error messages from the Raiserror command in the trigger. When the Raiserror follows an "IF @@ROWCOUNT = 0" the message is "Data has changed since the Results pane was last updtated..." When...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.