I try this for single proc, like:
sp_audit 'exec_procedure', 'all', 'dbname.dbo.myproc' ,'on'
it is fine. Then I try to do this for all sp. try following:
sp_audit 'exec_procedure', 'all', 'all' ,'on'
it's not working. give me error:
11:31:25.438 | DBMS | mysyb -- Number (18228) Severity (16) State (1) Server (MYSYB) Procedure (sp_audit) 'all' is not a valid object name. |
how to fix it? I want to monitor on calling on all sp in user database.