Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Profiler: Get stored procedure name

I am running SQL Server Profiler (SQL Server 2008). Is there a way to see the name of the stored procedure that is executing? I am profiling SP:Started and SP:Completed. The TextData column hasn't been helpful as my stored procedures are encrypted so TextData displays "-- Encrypted text".

Profiler Screenshot

like image 476
JeredM Avatar asked May 18 '16 16:05

JeredM


People also ask

How do you check where a stored procedure is called in SQL Server?

Using SQL Server Management Studio Expand Databases, expand the database in which the procedure belongs, and then expand Programmability. Expand Stored Procedures, right-click the procedure and then click View Dependencies. View the list of objects that depend on the procedure.


2 Answers

Have you tried adding column ObjectName? This should show stored procedure names. I haven't worked with encrypted procedures, but I'd be very surprised if the names are also encrypted ('cause how could you call the proc if you didn't know the name?)

like image 191
Philip Kelley Avatar answered Sep 27 '22 19:09

Philip Kelley


It is possible that the stored procedure is encrypted, try searching for text containing 'WITH ENCRYPTION' in your db.

Additionally, perhaps there is a point in which there's too much data being passed into the sp where SSP will not display the text.

like image 41
Bygonaut Avatar answered Sep 27 '22 20:09

Bygonaut