Jan 27, 2007 #1 shams123 Programmer Jan 27, 2006 81 MY Hi guys, For some odd reason my sql server has gone really really slow! Every query in sql query analyzer is suddenly taking ages to run! Any idea what could possibly cause this? A different machine with the same specs and database is fast as expected. Thanks!
Hi guys, For some odd reason my sql server has gone really really slow! Every query in sql query analyzer is suddenly taking ages to run! Any idea what could possibly cause this? A different machine with the same specs and database is fast as expected. Thanks!
Jan 27, 2007 #2 hmckillop Programmer Oct 30, 2001 1,540 GB has the tempdb run out of space - check where master/tempdb etc are located and check they arent running out of space. Second option - try running profiler to see where the problem lies (i.e. if excessive reads etc could be query plans are skewed) 101 other options - wait to George gets started "I'm living so far beyond my income that we may almost be said to be living apart Upvote 0 Downvote
has the tempdb run out of space - check where master/tempdb etc are located and check they arent running out of space. Second option - try running profiler to see where the problem lies (i.e. if excessive reads etc could be query plans are skewed) 101 other options - wait to George gets started "I'm living so far beyond my income that we may almost be said to be living apart
Jan 27, 2007 #3 SQLDenis Programmer Oct 1, 2005 5,575 US proably statistics that are out of date Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Upvote 0 Downvote
proably statistics that are out of date Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/
Jan 27, 2007 1 #4 mrdenny Programmer May 27, 2002 11,595 It could be any number of things. Way more information will be needed before anyone can take more than a guess as to what the problem is. Here are some common possible reasons. 1. The OS doesn't have enough memory left to it. (Check this in the Task Monitor). 2. The drives that the database is on are at capacity. (Check the performance monitor for the disk queueing for that drive.) 3. There is another process running that is taking all the CPU power from the server. 4. There are to many processes running taking all the CPU power from the server. 5. Your stats are out of date. 6. Indexes are missing or were dropped that are needed. Does the problem go away if SQL Server is restarted? Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
It could be any number of things. Way more information will be needed before anyone can take more than a guess as to what the problem is. Here are some common possible reasons. 1. The OS doesn't have enough memory left to it. (Check this in the Task Monitor). 2. The drives that the database is on are at capacity. (Check the performance monitor for the disk queueing for that drive.) 3. There is another process running that is taking all the CPU power from the server. 4. There are to many processes running taking all the CPU power from the server. 5. Your stats are out of date. 6. Indexes are missing or were dropped that are needed. Does the problem go away if SQL Server is restarted? Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com
Jan 27, 2007 Thread starter #5 shams123 Programmer Jan 27, 2006 81 MY Hi Denny, That helped, my code had some problems and that was causing the bottleneck. Cheers! Upvote 0 Downvote
Jan 27, 2007 #6 mrdenny Programmer May 27, 2002 11,595 No problem. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
No problem. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com