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

  • Home
  • SEARCH
  • 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 7756147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:44:44+00:00 2026-06-01T12:44:44+00:00

In SQL Server when I want to check performance, I clear all buffers –

  • 0

In SQL Server when I want to check performance, I clear all buffers – in order to get true result : I use

  CHECKPOINT 1
  DBCC DROPCLEANBUFFERS
  dbcc FREEPROCCACHE 

and then I check differentials between GetDate()'s

What command should I use in C# in order to clear any buffer/”speed helper” mechanism ?
(I’m intending to use stop watch).

THanks.

  • 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-06-01T12:44:45+00:00Added an answer on June 1, 2026 at 12:44 pm

    A .NET program has a lot of ‘caches’, and not all of them can be cleared. You have the CPU caches that are filled not only by your process, but also by other processes running on your computer. You have the jitter that compiles your functions the first time they’re called, making the first iteration a lot longer than any other iteration. If you’re using any sort of I/O, you have those caches and buffers as well.

    Besides, why would you want to clear the caches? They are there to help you. In the real world, a cache hit will help your performance – why not measure your program’s performance while taking caches and buffers into account?

    Anyway, I think you should use a profiler instead of a Stopwatch to measure your performance. That goes for SQL Server as well.

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

Sidebar

Related Questions

I want to check whether a Tag (Case-Sensitive) exists in SQL Server 2005 table
I'm using SQL Server and I want to use identity constraint in it I
I want to use CLR table-valued function in SQL Server 2008, which accesses a
In MS SQL server, can i use a SELECT statement to define a CHECK
Using SQL Server I want to check two values in two table. I have
Using VB.Net and Sql Server I want to check the user Entry Value. The
Using SQL Server 2000 I Want to Check the colum value whether it is
I want check my SQL server connection before to connect with DB, and I
In MS SQL Server if I want to check the results from a Stored
I have a connection to a Microsoft SQL Server and want the change the

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.