Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 780731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:07:20+00:00 2026-05-14T20:07:20+00:00

How can I query the read/write ratio in Sql Server 2005? Are there any

  • 0

How can I query the read/write ratio in Sql Server 2005? Are there any caveats I should be aware of?

Perhaps it can be found in a DMV query, a standard report, a custom report (i.e the Performance Dashboard), or examining a Sql Profiler trace. I’m not sure exactly.

Why do I care?

I’m taking time to improve the performance of my web app’s data layer. It deals with millions of records and thousands of users.

One of the points I’m examining is database concurrency. Sql Server uses pessimistic concurrency by default–good for a write-heavy app. If my app is read-heavy, I might switch it to optimistic concurrency (isolation level: read committed snapshot) like Jeff Atwood did with StackOverflow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:07:20+00:00Added an answer on May 14, 2026 at 8:07 pm

    Check out sys.dm_db_index_usage_stats:

    • seeks, scans, lookups are all reads
    • updates are writes

    Keep in mind that the counters are reset with each server restart, you need to look at them only after a representative load was run.

    There are also some performance counters that can help you:

    • Batch Requests/sec: number of Transact-SQL command batches received per second.
    • Write Transactions/sec: number of transactions that wrote to the database and committed
    • Transactions/sec: number of transactions started for the database

    From these rates you can get a pretty good estimate of read:write ratio of your requests.

    after your update

    Turning on the version store is probably the best avenue for dealing with concurrency. Rather than using the snapshot isolation explicitly, I’d recommend turning on read committed snapshot:

    alter database <dbname> set allow_snapshot_isolation on;
    alter database <dbname> set read_committed_snapshot on;
    

    this will make read committed reads (ie. the default ones) to use snapshot instead, so it literally doesn’t require any change in the app and can be quickly tested.

    You should also investigate if your reads don’t get executed under serialization reads isolation level, which is what happens when a TransactionScope is used w/o explicitly specifying the isolation level.

    One word of caution that the version store is not exactly free. See Row Versioning Resource Usage. And you should give a read to SQL Server 2005 Row Versioning-Based Transaction Isolation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I query Active Directory from SQL Server 2005?
Is there any function in C on linux by which we can query MX
How can I read the reult of LINQ query row by row .(Is it
Is there a table i can query all of Oracle Reserved Words? Example, i
I am programming a server daemon from which users can query data in C.
Whats query can be used to get the details of Indexes of any table?
I am attempting to read the results from a SQL query into a List(Of)
OLEDB can be used to read and write Excel sheets. Consider the following code
Hi trying to write a simple linq query from a tutorial I read. But
Is it possible to read/write data from/to a file in a PL/SQL block without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.