How do you execute these stored procedures? If SSMS reports print faster and easier, if you can use custom SQL Profiler Events from your application .
You can disable and disable logging by changing the connection string.
IF APP_NAME() LIKE '%Debug%'
BEGIN
DECLARE @msg NVARCHAR(128), @user_data varbinary(8000)
SELECT @msg = N'A message', @user_data = cast('some data' as varbinary(8000))
EXEC sp_trace_generateevent 82, @msg, @user_data
END
source
share