This is one of my favorite script which I use most of the time in troubleshooting performance issues on production
Continue readingCategory: SQL Server -DBA
SQL Server -DBA, SQL Server Services, who dropped or altered tables,procedures or databases in SQL Server, What in SQL Server
Find SQL Text of recently executed queries in SQL Server
Finding SQL Text of recently executed queries in SQL Server we can find out SQL Text of recently executed queries
Continue readingHow to know memory usage in SQL Server?
We can find out memory usage of SQL Server by using below scripts. select total_physical_memory_kb/1024 AS total_physical_memory_mb, available_physical_memory_kb/1024 AS available_physical_memory_mb,
Continue readingHow to Add data file or log file in SQL Server?
We can add data and log file in SQL Server through below script. Add data file(.mdf) in SQL Server ALTER
Continue readingSQL Server – Resolve Error 5030 to Rename Database
When we try to rename the database then getting error below Msg 5030, Level 16, State 2, Line 1 The
Continue readingSQL SERVER – How to Identifying TempDB is growing abnormally in SQL SERVER
Recently I have observed that the size of the TempDB is growing rapidly then I tried to identify which queries
Continue readingDifference Between Checkpoint And Lazy Writer
CHECKPOINT vs LAZY WRITER CHECKPOINT LAZY WRITER Check point runs in only transaction log file Lazy writer operates from buffer
Continue readingLazy writer in SQL Server
Lazy writer Lazy writer in SQL Server :- Lazy writer check each page header and verify whether all transactions in
Continue readingLock Granularity in SQL Server
Understanding Lock Granularity in SQL Server SQL Server Lock granularity describe which resource is locked by a single lock attempt.
Continue readingHow to check connections for a particular Database in SQL Server
Below Script provides the connections details for a particular Database in SQL Server. select spid,loginame,blocked,waittype,cpu,hostname,DB_NAME(dbid) AS DB_NAME ,status from sys.sysprocesses
Continue reading