简体   繁体   中英

Expanding list of databases in SQL Server 2008 Management Studio Takes Longer than SQL Server 2005

Is it just me, or does expanding the list of databases in SQL Server 2008 Management Studio take significantly more time than expanding the list of databases in SQL Server 2005 Management Studio?

If it isn't just me, is there an explanation for this behavior? Whatever it is doing in the background that makes it take longer, can we turn that off? Is it configurable?

I know, it seems trivial, but I am perpetually being surprised at how long this takes.

In SQL Management Studio 2008, select the "Databases" node in the Object Explorer. Then, click View --> Object Explorer Details. Right click on one of the column headers and uncheck all of the columns besides "Name". These columns are slowing down the process of expanding the database list.

Most of the systems I have worked on have 200 or fewer tables. That should be near instantaneous.

The only times I've ever seen a slow down is in systems under heavy load or if my network connection to the database server is slow. In which case it is completely dependent on factors outside my control.

I had the same problem,expanding the databases was extremely slow on Mng Studio 2012 and 2014 but not on 2008. The problem was that a lot of databases had the AutoClose property set to True

I used this script to find those databases

SELECT name, is_auto_close_on, is_auto_shrink_on FROM master.sys.databases AS dtb 
WHERE is_auto_close_on = 1 OR is_auto_shrink_on = 1
ORDER BY name

And then i set the AutoClose property to False on those databases.

From then , the databases node expands instantaneously

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM