on 06-21-2018 11:23 PM
Hello,
Is there away to lock a login that has been inactive for n days, i.e
sp_locklogin NULL, ‘lock’, NULL, 90
I got just a message , "account locked"
Thank you
Jose
Hi Jose,
That command,
sp_locklogin NULL, ‘lock’, NULL, 90
should be exactly what you need.
If you run just "sp_locklogin" with no parameters, it will output a list of locked logins - are you saying that none are locked even though you received the output "account locked"?
-bret
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jose,
sp_locklogin will do it once, at the time you call it. Are you looking to make this something that happens automatically? You could create an ASE Job Scheduler job configured to execute once a day that called sp_locklogin.
-bret
Jose, take a look at this: https://blogs.sap.com/2015/11/12/locking-inactive-logins-ase-157-sp-134/ here I locked all accounts with 90 days or more innactive.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.