Skip to content

NTSEQ:- A IT Infrastructure and Cyber Security Blogs

How to recover lost or forget administrator SA Password In SQL Server?

I am going to show you how to recover Sysadmin Password through SSMS:- Kindly follow the below Steps: 1. Stop

Continue reading

What is Resource Database in SQL Server ?

Resource Database Read-only hidden database that contains all the system information Can’t  back up the Resource database Must copy paste

Continue reading

How to find When was your database last used or accessed ?

Use < your_DatabaseName> GO SELECT DB_NAME() as DatabaseName,s1.sql_handle,(SELECT TOP 1 SUBSTRING(s2.text,statement_start_offset / 2+1 ,( (CASE WHEN statement_end_offset = -1THEN (LEN(CONVERT(nvarchar(max),s2.text)) * 2)ELSE statement_end_offset END) – statement_start_offset) /

Continue reading

Find service account information in SQL Server

SELECT  servicename,         startup_type_desc,         status_desc,         last_startup_time,         service_account,         is_clustered,         cluster_nodename,         filename,         startup_type,         status,         process_idFROM    sys.dm_server_services AS 

Continue reading

How Many CPU Support By SQL Server Web edition ?

SQL Server Web edition supports only 4 processors.

Continue reading

How to find how many CPU Cores SQL Server is using?

             

Continue reading

TOP 5 CPU-CONSUMING Queries In SQL SERVER

  SELECT TOP 5 qs.total_worker_time/(qs.execution_count*60000000) as [Avg CPU Time in mins], qs.execution_count, qs.min_worker_time/60000000 as [Min CPU Time in mins], –qs.total_worker_time/qs.execution_count,

Continue reading

Top 10 worst performing Queries in SQL SERVER

  SELECT TOP 5 obj.name, max_logical_reads, max_elapsed_time FROM sys.dm_exec_query_stats a CROSS APPLY sys.dm_exec_sql_text(sql_handle) hnd INNER JOIN sys.sysobjects obj on hnd.objectid

Continue reading

How to find longest running query In Sql Server

  SELECT DISTINCT TOP 3 t.TEXT QueryName, s.execution_count AS ExecutionCount, s.max_elapsed_time AS MaxElapsedTime, –ISNULL(s.total_elapsed_time / s.execution_count, 0) AS AvgElapsedTime, s.creation_time

Continue reading

Performance Tuning :- How to identify blocking And Lead blocker in SQL Server

  During normal processing in a database, it is blocked. Blocking is “by design” because your database is on ACID.

Continue reading

Posts pagination

«Previous Posts 1 … 26 27 28 29 30 … 34 Next Posts»
  • C Programming
  • C++
  • Cyber Security
  • Interview FAQ
  • Java
  • Linux
  • MySQL
  • Netseq.com
  • Oracle
  • PHP
  • Python
  • SQL
  • SQL Server -DBA
  • What is Cyber Kill Chain
  • Active Directory Security: Strategies to Safeguard Your Organization
  • PowerShell scripts for Active Directory (AD)
  • Top 50 Essential Active Directory PowerShell Commands and Administrative Tools
  • Critical Windows Event ID’s to SOC Team Must Monitor
WordPress Theme: Wellington by ThemeZee.