Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
javier_barthe
Participant
0 Kudos

Hi,

I want to lock logins inactive for more than 90 days so I´m executing:

sp_locklogin NULL, 'lock', NULL, 90

But after executing it I´m getting the following output:

Warning: One or more accounts specified are active.

Account locked.

(return status = 0)

So I decided to open de sp_locklogin code and discover that the reason is in line 919:

When @except is null and @loginame is null (1st and 3rd parameters of sp_locklogin) there is not a check before of what logins are going to be blocked in order to join with only these ones and not with all syslogins.

So don´t care about the message its just a luck of funcionality inside sp_locklogin and results are correct.

Thanks.

Javier.

Labels in this area