Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 lock inactive user accounts after X days

Author  Topic 

pixelmonkey
Starting Member

2 Posts

Posted - 2012-05-22 : 10:06:51
first post on this forum.

this should be easy.

DB with users has a date stamp for when they last logged on.
format = 2010-02-19 08:31:48.877

I need to have the user accounts locked if they have not logged onto the system in the last X number of days.

nothing further required, just lock the account.

help?
thanks
chris<pixelmonkey>:D

pixelmonkey
Starting Member

2 Posts

Posted - 2012-05-31 : 13:27:33
bump
chris<pixelmonkey>:D
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-05-31 : 13:34:00
Please explain in more detail. How are the users defined? Are they SQL accounts, Windows accounts, or application accounts (rows in a users table)? How are you determining last logged in?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -