December 10, 2013 at 7:15 am
Hi,
Could any1 help me how to find inactive users(e.g users who have not logged in for a long time) in SQL server???
December 10, 2013 at 7:35 am
SELECT name,accdate FROM master.dbo.syslogins
December 10, 2013 at 7:38 am
SELECT name,accdate FROM master.dbo.syslogins
shows the creation date but i want the last login date when the user logged in for the last time
December 10, 2013 at 7:47 am
SQL doesn't track that automatically. You'll need custom auditing for that.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply