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 6008391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:49:03+00:00 2026-05-23T01:49:03+00:00

I have a fairly complex procedure that currently takes about 1:30 (min:sec) to complete.

  • 0

I have a fairly complex procedure that currently takes about 1:30 (min:sec) to complete. We are transitioning to a new server and when I run the same query against the same data on the new server it takes almost 2:30 to complete.

The old server is a single proc – dual core Intel 4 2.8 GHz CPU with 3 GIG of RAM running Windows 2000 and SQL 8. The new server is a dual proc – dual core (4 cores total) 3.4 GHz machine with 6 GIG of RAM running Windows 2008 R2 and SQL 2008.

I had hoped to see this procedure (which gets run frequently every hour) get faster with the new machine and new SQL but it is now over 50% slower?! I work for a small company doing all the programming and networking but am not a DBA. Is there possibly some kind of optimization being done on the old machine/SQL that is not happening on the new machine/SQL? The new machine is doing nothing but running SQL which has been set to use all the RAM available.

When I run the procedure it only seems to use one processor core and all the RAM it can get (same thing on both machines). And it only appears to use the one processor about 50% on average.

Any guidance on what might be causing this slowdown is appreciated.

Brian

  • 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-23T01:49:04+00:00Added an answer on May 23, 2026 at 1:49 am

    I assume you upgraded the database by doing a restore, did you update the statistics (with full scan) or rebuild all the indexes?
    Otherwise you won’t get optimal plans

    for a full scan, you can do this

    EXEC sp_msForEachTable 'UPDATE STATISTICS ? WITH FULLSCAN'
    

    This might take a while if you have large table

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

Sidebar

Related Questions

I have a fairly complex multi threaded application (server) that from time to time
I have a fairly complex CLR stored procedure. What is the best way to
I have a fat GUI that it getting fairly complex, and I would like
I have a fairly small MySQL database (a Textpattern install) on a server that
I have a fairly large codebase that depends on MooTools v1.11 and am about
I have about half a dozen generic, but fairly complex stored procedures and functions
Let's say I have an object that is fairly complex. Since it is so
I have a fairly complex application in Delphi 2006 that communicates through an ApdComport
I have a fairly complex set of C++ classes that are re-written from Java.
I have built a fairly complex form which includes a hidden section that 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.