About Me

My photo
I am MCSE in Data Management and Analytics with specialization in MS SQL Server and MCP in Azure. I have over 13+ years of experience in IT industry with expertise in data management, Azure Cloud, Data-Canter Migration, Infrastructure Architecture planning and Virtualization and automation. Contact me if you are looking for any sort of guidance in getting your Infrastructure provisioning automated through Terraform. I sometime write for a place to store my own experiences for future search and read by own blog but can hopefully help others along the way. Thanks.

How to know when SQL Server installed from T-SQL & How to Check Errorlog based on specific time


When was SQL Server installed
========================
SELECT @@SERVERNAME AS [Server Name],
createdate AS [SQL Server Install Date]
FROM sys.syslogins
WHERE [sid] = 0x010100000000000512000000;

output
=======



How to Check Errorlog based on specific time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xp_readerrorlog 0,1,N'',N'',N'5/14/2014 7:22:18 AM',N'5/14/2014 7:22:19 AM'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How To Find Out Who Installed SQL Server:- 

------------------------------------------------------------------------------------------------------

Click here