Re: Statistic Generator



About your only option, short of implementing auditing in your SPs and adding triggers to the tables (to monitor i/u/d access) is to use Profiler or server-side tracing and watch activity, say over a 24-hour period. If you trap the SP:Starting event, you'll get a list of the ObjectIDs of all procedures accessed in the database. You can resolve the names against the system tables or use the object_name() function within the context of the database. Tables are more difficult to monitor. If you are completely SP-based, then you can just resolve the tables from the SP code. If your apps run dynamic sql, then you'll have to look at SQL:StmtStarting and RPC:Starting events and resolve the table names from there.

--
David Gugick
Imceda Software
www.imceda.com


"ECathell" <ecathell@xxxxxxxxxxxxxxxxxxxx> wrote in message news:OF38r9$SFHA.3012@xxxxxxxxxxxxxxxxxxxxxxx
We have a database solution that was created by a 3rd party vendor. Over time we have replaced their applications with our own in-house applications, however not all of our programs have been upgraded so some of the tables and stored procedures may still be in use. Is there a tool or table that would show me access or usage dates so that I could see when a certain sp was executed last? Or when a certain table was last accessed?


Thanks
Eric

--
--Eric Cathell, MCSA


.



Relevant Pages

  • Re: Unable to get global configuration data.
    ... "SharinDenver" wrote: ... how to resolve the default website. ... on the web server. ... Unable to connect to database. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: User Rights Assignment - not available
    ... To resolve this issue, first run the Esentutl.exe tool to examine the ... and WinDir is the folder where Windows XP ... This operation may find that this database is corrupt ... Initiating INTEGRITY mode... ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Cant Install SP4 for SQL 2000 / Win2k3
    ... This explains why a reinstall did not fix the errors. ... ran 'sp_resetstatus msdb' from query analyzer, ... > The LSN %S_LSN passed to log scan in database '%.*ls' is invalid. ... > To resolve this problem, obtain the latest service pack for Microsoft SQL ...
    (microsoft.public.sqlserver.setup)
  • Re: User Rights Assignment - not available
    ... To resolve this issue, first run the Esentutl.exe tool to examine the ... and WinDir is the folder where Windows XP ... This operation may find that this database is corrupt ... Initiating INTEGRITY mode... ...
    (microsoft.public.windowsxp.security_admin)

Quantcast