Confirm SQL server is installed on the server through services.msc or SQL services configuration manger.
Start à Run àservices.msc verify SQL Services are visible like SQL server, SQL Server Agent. Etc.,
SQL services configuration
Start àProgramsàMicrosoft SQL server 20xxàConfiguration Tools àSQL Server configuration Manager
Verify SQL maintenance jobs like Reindex , Update Stats or CheckDB is running during business hours. These jobs are created and scheduled to run on week end or off business hours. If any maintenance jobs in running state.
Check blocking
select *from sysprocesseswhere blocked >0
If many blockings are found, head blocker can be determined by using the query below.
declare @handle binary(20), @spid int
select top1 @spid = blocked
from master..sysprocesses a
where a.blocked != 0
and a.blocked not in (select spid from master..sysprocesses b whereblocked != 0)
if @spid isnot null
begin
select@handle = sql_handlefrom master..sysprocesses where spid = @spid
execsp_who2 @spid
dbccinputbuffer (@spid)
--exec ('kill ' + @SPID)
select lastwaittype from sysprocesses where spid=@spid
select* from ::fn_get_sql(@handle)
end
The minimum and maximum memory values are important, especially since we gave the SQL Server account the permission to lock its pages in memory. If other applications are running on this server, we need to specify how much memory want SQL Server to take.
SQL Server application is Memory consuming application. We need to restrict SQL instance with minimum and maximum memory setting by leaving some amount of memory to Operating system.
Go into SQL Server Management Studio, right-click on the server name and click Properties, go into Memory, and just verify SQL max. memory set for the SQL server.
This query will provide information about how many queries are requesting for memory , how many are granted and how many are pending to be granted.
--Query 3: SELECT * FROM sys.dm_exec_query_resource_semaphores
--Query 4: SELECT TEXT,* FROM sys.dm_exec_query_memory_grants cross apply sys.dm_exec_sql_text (sql_handle) order by requested_memory_kb desc |