Solved

How sql stores how many SELECT statements hit on a particular table.?

Posted on 2003-12-03
4
271 Views
Last Modified: 2007-12-19
Please answer my two questions

1) How's Sql Server stroring the no.of SELECT statements hitting on a table..?

2) Where does Sql Server store updated data (older data) during a transaction..?

Thanks in advance..
0
Comment
Question by:josebirla
4 Comments
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9865800
1. ??
2. Inserted and Deleted Tables. You can Use it within Trigger.
0
 
LVL 6

Expert Comment

by:rajesh009
ID: 9865906
Hi,
 
1)  AFAIK SQL server does not store the no. SELECT statements hitting on a table.

2) Older data are stored in deleted table, to be precise, prior to commit being issued. This table can be accessed in a before insert or update trigger. New data is stored in inserted table.

Thanks,
Rajesh.
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 9869046
your select question
are you actually asking about how SQL server control concurrency?
e.g. Database Locking

if so read BOL on locking
and look at the system table syslockinfo


hth
0
 
LVL 7

Accepted Solution

by:
pegasys earned 125 total points
ID: 9879788
Take a look at the SQL Transaction logs. (Enterprise manager is the best way to see these). They are files that store ALL transactions, ie. selects, inserts, deletes etc... to and from the SQL databases...
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question