SQL DB Help is a technical blog dedicated to Microsoft SQL Server development and administration. Explore expert tips, practical solutions, and best practices for managing SQL databases, performance tuning, T-SQL scripting, and more. Ideal for DBAs, developers, and IT professionals seeking reliable SQL Server guidance.
Showing posts with label Q-Answer. Show all posts
Showing posts with label Q-Answer. Show all posts
Saturday, February 13, 2021
Sunday, August 2, 2020
How to find SQL Server installation Date
To find the installation date of SQL Server, we need to examine the creation date of the "NT Authority\\System" login. This login is created during the SQL Server installation process.
-- Query to retrieve the server installation date SELECT create_date FROM sys.server_principals WHERE name = 'NT AUTHORITY\\SYSTEM';
-- Alternate query to retrieve the server installation date using SID SELECT create_date, * FROM sys.server_principals WHERE sid = 0x010100000000000512000000;
-- Query to retrieve the creation date for the "NT AUTHORITY\\NETWORK SERVICE" login SELECT create_date FROM sys.server_principals WHERE name = N'NT AUTHORITY\\NETWORK SERVICE';
For more information, check out the following articles:
Subscribe to:
Posts (Atom)