Browse by Tags

TSQL to get TOP 10 queries that are using I/O generation, SQL Server 2005
Published 14 July 8 5:26 AM | SSQA.net
DMVs are most helpful to find instant information on SQL instance without causing further delays, in any performance degradation time you can execute following TSQL to get top 10 queries that are generating lots of I/O on the server: SELECT TOP 10 total_logical_reads...
SQL Server 2005 DMV - quick information to find resource allocation & DDL bottleneck
Published 9 June 8 3:29 AM | SSQA.net
Initially I preferred to put this blog post within Performance tuning blog section here, but as it relates to the TSQL script thought this is best place to go. Anyways, if you have a performance problem the foremost option is to find whether the server...
SQL Server 2005 detect DAC session with TSQL
Published 9 May 8 1:11 PM | SSQA.net
SQL Server 2005 has introduce a secret-door for Admins to identify and resolve any connect lockout issues within your database instance, as on http://sqlserver-qa.net/blogs/tools/archive/2007/08/04/dedicated-administrator-console-dac-saved-an-important...
SQL Server: Quick way to find Active & idle connections on a SQL instance
Published 2 May 8 4:32 AM | SSQA.net
Using SQL Server 2005 you can take help of DMV - sys.dm_exec_connections that will give server-level information about the connections. In the olden days usage of sysprocesses system table used to be heavy and same approach can be achieved by using system...
Error while executing DMV - Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '('.
Published 17 March 8 4:39 AM | SSQA.net
DMV - has got very special place for DBAs since the inception of SQL Server 2005. In this case one of the thme is very important to find out the index statistics within your database, such as sys.dm_db_index_physical_stats statement. Recently one of the...
TSQL to get clustered index information in SQL Server 2005
Published 10 March 8 3:0 AM | SSQA.net
Recently within a supportal case with CSS we have been given the following TSQL to get information on indexes, where I have modified a bit to get 'Clustered' index information alone that was helpful to see which tables lack of clustered index...
SQL Server Audit Trace - things you need to take care!
Published 6 March 8 3:17 AM | SSQA.net
Audit trace is very helpful when you want to monitor a particular processes on your SQL Server, even for the successful logins and recent users activity on the databsaes. But the default trace would have many columns with the information and you need...
TSQL to get current executing statements - SQL Server 2005
Published 12 February 8 2:27 PM | SSQA.net
Using SP_WHO or SP_WHO2 is a common way to get list of executing processes currently on the server, within SQL Server 2005 you could take advantage of DMV that lists currently-executing statements. select r.session_id ,status ,substring(qt.text,r.statement_start_offset...
SQL Server 2005 TSQL to obtain buffers by object (table, index) in the buffer cache?
Published 1 February 8 6:30 AM | SSQA.net
As a programmer interacting with SQL Server's cache is not often needed, but when you do need to determine what is going on with the cache, or you simply need to flush the execution plans or data pages to tune a query, you now have the means to do...
TSQL to get a quick information on detailed distribution of memory allocated
Published 10 January 8 3:4 PM | SSQA.net
By design the components that are aware of the SQL Server memory management mechanisms use the buffer pool for small memory allocations. If the allocation is bigger than 8 KB, these components use memory outside of the buffer pool through the multi-page...
How to monitor transaction activity between the databases?
Published 10 January 8 4:23 AM | SSQA.net
Recently I have been through interesting forum post on SQL Server performance website that a user asking how to monitor transaction activity between the databases without using a third party tool. Until SQL 2000 version it is not that easy to get more...
Identifying top 20 most expensive queries in terms of read I/O (referred from Technet Magazine)
Published 15 November 7 7:16 AM | SSQA.net
It is worth mentioning the valueable query I have been through when referring to Technet Magazine, the following query has given me useful information in finding out what are my top 20 most expensive queries that are consuming most of disk I/O (read &...
SQL Server 2005: Slow running queries - Blocking and Index problems
Published 24 September 7 9:19 AM | SSQA.net
As a DBA you must be aware that slow or long running queries can contribute to excessive resource consumption and be the consequence of blocked queries. No database application is exception to this behaviour, so the queries that also run slowly because...
Usage and good practices with UPDATE STATISTICS feature in SQL 2005
Published 23 July 7 5:39 AM | SSQA.net
UPDATE STATISTICS is very helpful to get the performance by updating the distribution of key values for one or more statistics groups or set of collections in the specified table or indexed view. So how this is handled within the SQL Server, you may be...