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

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..
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dishan FernandoSoftware Engineer / DBACommented:
1. ??
2. Inserted and Deleted Tables. You can Use it within Trigger.
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.

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

pegasysIT, System Admin, Development and Stack DevelopmentCommented:
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...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.