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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:00:57+00:00 2026-06-15T13:00:57+00:00

We have deployed SQL Server 2012 Enterprise and we have performance issues: same data

  • 0

We have deployed SQL Server 2012 Enterprise and we have performance issues:

  • same data (backuped from our SQL Server 2005 Enterprise and restored on 2012)
  • test script of 3200 sql SELECT statements

We do tests using Management Studio:

  1. results as plain text
  2. results in a file

On same computer:

  1. 2005 : 15 sec, 2012 : 2 min
  2. 2005 : 14 sec, 2012 : 30 sec

Even with a more powerful computer, 2012 is still slower than 2005.

What can be wrong? The way we installed SQL Server 2012 and default parameters? The way we restored the backup? What can we do?

  • 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-15T13:00:58+00:00Added an answer on June 15, 2026 at 1:00 pm

    My first thought when I see variations like that are to ensure that you have regenerated statistics for all of your tables. There are many scripts on the web for doing this and lots of discussion about whether to use the built-in sprocs, whether to do fullscan etc. Here is one quick and dirty script through that I would run before doing comparisons.

    CREATE  PROCEDURE sp_UtilityUpdateStats AS
    SET NOCOUNT ON
    
    DECLARE @iCounter       INT
    DECLARE @iCounterMax    INT
    
    DECLARE @TableList TABLE
    (
        iTable INT IDENTITY(1,1) PRIMARY KEY,
        szTableName VARCHAR(128)
    )
    
    INSERT @TableList (szTableName)
    SELECT [name] FROM sysobjects
    WHERE [type] = 'u'
    ORDER BY [name] DESC
    
    
    SET @iCounterMax = (SELECT MAX(iTable) FROM @TableList)
    SET @iCounter = 0
    DECLARE @szTableName VARCHAR(128)
    
    RAISERROR(N'------STARTING sp_UtilityUpdateStats------', 10, 1) WITH LOG
    WHILE @iCounter < @iCounterMax
    BEGIN
        SET @iCounter = @iCounter + 1
    
        SELECT  @szTableName = szTableName
        FROM @TableList
        WHERE iTable = @iCounter
    
        RAISERROR(N'UPDATE STATISTICS YourDB.dbo.%s', 10, 1, @szTableName) WITH LOG
        EXEC ('UPDATE STATISTICS YourDB.dbo.' + @szTableName)
    
    END
    RAISERROR(N'------FINISHING sp_UtilityUpdateStats------', 10, 1) WITH LOG
    
    SET NOCOUNT OFF
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL Server 2005 data-mart star schema with the usual fact and
I have a number of reports deployed to a SQL Server 2005 Reporting Services
I have a few SSIS packages that are deployed to a SQL 2005 Server
I finally got my SSIS package deployed to our SQL 2005 server, and I
I have deployed a 'Customer' customfield plugin in JIRA which accesses a SQL Server
I have a SQL Server CE Database file that gets re-deployed every time I
i have a webbased tracking application and i am storing data in SQL server.
I have an SSIS package that needs to be deployed to SQL Server agent.
I have a SQL Server 2005 Reporting Services solution containing several reporting projects. (I
I have an SSIS package deployed to Sql Server 2008. This package runs fine

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.