Using DBCC SQLPERF

There are a number of uses for the DBCC SQLPERF command. I touched upon one of them in my last post on how you can use the command to obtain information about transaction log growth. This handy little DBCC command has been around for a while now. So lets look at the others ways you use […]

Monitoring SQL Server Transaction Log Growth Using DBCC SQLPERF(logspace)

For this article, I am using DBCC SQLPERF(logspace) to get size information about the transaction logs. I hope you will find this post useful in helping to monitor the growth of your transaction logs. The idea here is to capture and store the growth information at set intervals. This can provide a way to report on how much […]

Using DBCC FREEPROCCACHE to Clear SQL Server Procedure Cache

It is possible to clear out the entire SQL Server procedure cache using DBCC FREEPROCCACHE The procedure cache is where SQL Server will cache execution plans after they have been compiled. The benefit of this caching is that there is no need for the execution plans to be compiled at run time. This compiling operation […]

Resetting table identity value using DBCC CHECKIDENT

DBCC CHECKINDENT can be used to reset a tables identity value on a column. On the official Microsoft page about it, it reads “Checks the current identity value for the specified table in SQL Server 2016 and, if it is needed, changes the identity value. You can also use DBCC CHECKIDENT to manually set a new […]

Using DBCC INPUTBUFFER for SQL Server troubleshooting

In my last post on sp_who2 I demonstrated how this handy utility can help you in your troubleshooting efforts. Continuing on from this, I am going to cover DBCC INPUTBUFFER What is DBCC INPUTBUFFER ? It is a command used to identify the last statement executed by a particular SPID. You would typically use this after […]