How can I determine from my vb app if my sybase password has expired
Posted on 2004-08-12
I need to be able to update my password on sybase, from my vb application, when it has expired. Something similar to the way the nt login works i.e. a few days before it is due to expire, when you logon you are asked if you would like to change it. You type in the old and new one and then it is updated
I know within sybase you can run the following to do the update
EXEC sp_password 'oldPassword', 'newPassword', 'loginName'
How can I tell if the password has expired or is there anywhere that I can set a flag to i.e. if its the last day of the month prompt the user that they need to change their password