简体   繁体   中英

stored procedure parameter values logging

有没有办法检查SQL Server 2008 R2中执行存储过程的时间和参数值是什么?

As usr said there is no way to do this at all, but you can do this as workaround, which I did in my projects.

Create a log table and implement in each procedure a INSERT INTO log_table statement where you insert time with GetDate() , procedure name and logged user. This table you can seek for your informations then.

This for sure only works for the future and not if you want to look for "old-use".

No, sorry. There is no way to do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM