Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for a SQL Monitor I Think 2

Status
Not open for further replies.

Rob7

Programmer
Dec 12, 2001
152
US
Hi All,
I am looking for a product that will monitor a SQL database and in some way, record the table and fields hit during an application transaction. For example, if I add a customer to a CRM package, what fields in which tables will get read, updated or possibly deleted during the transaction. Thanks in advance.

Rob

Cytec Corporation
rbrown@cyteccorp.com
 
Use SQL Profiler. it comes with SQL Server and should be available from the Start/Programs/Micorosft SQL Server menu.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
Thanks Denny. I will run through this and see what I can find. Never knew it was there.

Rob

Cytec Corporation
rbrown@cyteccorp.com
 
If there are specific tables you want to watch, check the <DBName>.SysObjects table. The ID column is the SPID (or ID) that you can specifically monitor in Profiler and allows you to exclude other non-essential Profiler hits.

This has helped me many times in the past. Also, database IDs can be gotten in a similar manner in the Master.SysDatabases table.

IMPORTANT NOTE: Make sure you only access these tables in read only mode or via a view or something harmless. If you pull everything up directly from the Enterprise Manager -> Database -> SysObjects table or Master -> SysDatabases table, and accidently type over something, you can kill your table/database.



Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!
 
Catadmins note about only viewing the system tables is why you should use the INFORMATION_SCHEMA views instead of the system tables to get information like this. They are a nice read only way to get the info you need. Look up INFORMATION_SCHEMA in BOL for full syntax and a list of the views.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top