Solved

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

Posted on 2003-12-03
4
267 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:dishanf
Comment Utility
1. ??
2. Inserted and Deleted Tables. You can Use it within Trigger.
0
 
LVL 6

Expert Comment

by:rajesh009
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now