Groups | Blog | Home
all groups > sql server (alternate) > october 2005 >

sql server (alternate) : Is logging the execution time of Stored Procedures with standard settings possible?


uli2003wien NO[at]SPAM lycos.at
10/13/2005 12:14:03 AM
Dear group,

is it possible in SQL-Server to see when a stored procedure was
executed ?

I would say it is only possible with some traces but not with the
standard settings.

For a short answer on that matter i'd be thankful.

Regards

Uli
m.bohse NO[at]SPAM quest-consultants.com
10/13/2005 1:44:42 AM
You could raise an error during execution which will be logged in the
SQL error log.
M
m.bohse NO[at]SPAM quest-consultants.com
10/13/2005 2:02:47 AM
You could raise an error during execution which will be logged in the
SQL errorlog.

M
uli2003wien NO[at]SPAM lycos.at
10/13/2005 3:30:57 AM
[quoted text, click to view]


[quoted text, click to view]

I want to have some possibility to see when a SP has been executed,
without changing the database in any way. Unfortunately there seems to
be no such possibility...
Robert Klemme
10/13/2005 1:35:26 PM
[quoted text, click to view]

What's the problem in running a trace filtering on this specific SP? Or
do you need to have this logged long term? That'll be harder. If you
have only a single ODBC client you might be able to cook something up with
the ODBC trace but I doubt this is a viable solution.

robert
AddThis Social Bookmark Button