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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:00:16+00:00 2026-05-23T16:00:16+00:00

I have just noticed one of my MSSQL databases has slowed down dramatically. The

  • 0

I have just noticed one of my MSSQL databases has slowed down dramatically. The weird thing is, it’s the smallest database of them all but it takes the longest to open.

After the database opens using mssql_select_db() it queries fine, but the initial mssql_select_db() takes 2 seconds. What could possibly be causing this?

Database 1 is much larger and has many more tables/rows then Database 2, they are both on the same MSSQL server so it’s not a networking issue.

Database 1
Connection/Selecting DB Time: 0.00554800033569
Query Time: 0.035463809967

Database 2 (Slow One)
Connection/Selecting DB Time: 2.40434789658
Query Time: 0.144586801529

Update: When i have “Database 2” open in Server Management Studio. mssql_select_db() seems to run normally, and connects fast see below

Database 1
Connection/Selecting DB Time: 0.00480604171753
Query Time: 0.0346729755402

Database 2 (Slow One)
Connection/Selecting DB Time: 0.00085186958313
Query Time: 0.0340950489044

This is not caused by too many active connections, I have already ruled that out. Any ideas?

Update 2:
I’m running PHP Version 5.2.6-1+lenny13 using MSSQL FreeTDS Library. I am directly connecting via IP not using hostnames so it’s not a resolv issue.

  • 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-23T16:00:17+00:00Added an answer on May 23, 2026 at 4:00 pm

    I have rebuilt the database and re-imported all the data, that has seemed to fix the problem. It may have just have been database fragmentation this whole time.

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

Sidebar

Related Questions

I have just noticed that one of the views I create from Microsoft Access
I have just noticed that my ViewController does not call init (See below) when
I just noticed that if I have an identity column in a table, when
I just noticed the HashTable objects have a Contains and CotainsKey method, with same
I just noticed something strange. If I have this XML: <level number=7 background=background_5> and
I'm using protobuf-net r278 in C#, and I just noticed that if I have
I have noticed that the Windows Vista/7 dialogs look MUCH better than just a
I just started using Qt and noticed that all the example class definitions have
I've just noticed that my app is including over 148 php files on one
I have started to use the CSS framework Bluetrip, and I just noticed that

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.