Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check a log of stored procedure calls?

Tags:

sql-server

Is there some type of logging in SQL Server (or some way to enable simple logging) that would allow me to check if a stored procedure was called, when it was called, and what parameters were passed and returned? I have seen some addon scripts for this but wasn't sure if this was built into SQL Server?

like image 628
Atom Avatar asked Aug 22 '11 17:08

Atom


1 Answers

It isn't built in

You need to set up a profiler trace or add code to your stored procedures to log

like image 174
gbn Avatar answered Sep 29 '22 08:09

gbn