Solved

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

Posted on 2003-12-03
4
270 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

840 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