Posts
38
Comments
50
Trackbacks
26
Monday, October 31, 2005
SQL Server 2005 Indexes: How many and how big?

This little snip of code allows you to list how many indexes are present on a table, their type and how big (kb and mb) they are:

select
    [name],
    type_desc,
    space_used_in_kb = (page_count * 8.0),
    space_used_in_mb = (page_count * 8.0 / 1024.0)
from
    sys.indexes I
inner join
   
sys.dm_db_index_physical_stats(db_id(), object_id('.'), null, null, null) P on I.[object_id] = P.[object_id] and I.[index_id] = P.[index_id]

 

posted @ Monday, October 31, 2005 3:59 PM | Feedback (5)
Sql Server Broker Management Studio

SQL Server 2005 Service Broker is a killer application...but you may get lost with all the configuration settings and objects you need to set up and manage so that you can use it effectively.

For this reason this great guy has done a great tool, that allows you to do everything visually, using a sort of Service Broker dedicated management studio.

http://www.digitaldeposit.net/blog/2005/09/sql-service-broker-management-studio.html

This is a tool-to-have if you're going to use Service Broker!

posted @ Monday, October 31, 2005 8:19 AM | Feedback (0)
News