top of page

Search
Index Usage SQL Server
--Check if index for the table is being used. SELECT i.index_id, i.name, u.user_seeks, u.user_lookups, u.user_scans FROM...

Kunal Ranpura
Jul 28, 20191 min read
Â
Â
Â
Find Owner of the database
--Get the owner of all the databases select name, suser_sname(owner_sid) from sys.databases

Kunal Ranpura
Jul 28, 20191 min read
Â
Â
Â
Find Memory Pressure in SQL Server
select * from sysprocesses --if wait type is RESOURCE_SEMAPHORE, it is memory pressure. SELECT * FROM sys.dm_exec_query_resource_semaphor...

Kunal Ranpura
Jul 28, 20191 min read
Â
Â
Â
Clean SQL Sever Cache
---Clean SQL Cache DBCC DROPCLEANBUFFERS go DBCC FREEPROCCACHE go DBCC FREESYSTEMCACHE('ALL')

Kunal Ranpura
Jul 28, 20191 min read
Â
Â
Â
SQL Server Wait Types
--Find the waittypes select * from sys.dm_os_wait_stats order by wait_time_ms desc --Clear the counter DBCC SQLPERF...

Kunal Ranpura
Jul 28, 20191 min read
Â
Â
Â
Query to Identify Lead Blocker in SQL Server
Following query will give you the lead blocker from the blocking chain in SQL Server. SELECT spid ,sp.STATUS ,loginame =...

Kunal Ranpura
Jul 25, 20191 min read
Â
Â
Â
Query to Identify SQL Server Bottlenecks
1). select * from sys.sysprocesses where status = 'suspended' and spid >10 and hostname <> 'MonitoringServer' order by blocked desc go...

Kunal Ranpura
Jul 25, 20191 min read
Â
Â
Â
bottom of page





