I am writing vb.net code to log a user into my application using SQL to authenticate the user. Each app user is an actual Microsoft SQL Server 2005 user. Now I need to test the login mechanism and for this I need to:
1) test against a SQL account that is locked.
2) test against a SQL account who’s password has expired.
Is there some stored proc or SQL that I can run to manually lock out a SQL account and to update a SQL account so it’s password has expired.
I do not want to wait for a day or 2 to get a SQL account who’s password has expired.