Re: Sp_changepassword
- From: Jason <Jason@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Dec 2007 12:19:00 -0800
what if the user doesn't remember their current password. can they do
anything?
"Erland Sommarskog" wrote:
Jason (Jason@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:.
I found this sp_changepassword in BOL as non GUI way to change the
password. But my ‘test’ user won’t work because its not a sysadmin.
That is intentional.
I get Only members of the sysadmin role can use the loginame option. The
password was not changed.
However my ‘test’ user can do it via the EM GUI.
So how should users be instructed to change their password, is the EM GUI
the only option?
No, they can use sp_password.
sp_password 'oldbadpw', 'neW&muCH$Tr0nG€r'
What they cannot is to specify the the third parameter, not even with
their own username.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
- Follow-Ups:
- Re: Sp_changepassword
- From: Erland Sommarskog
- Re: Sp_changepassword
- References:
- Re: Sp_changepassword
- From: Erland Sommarskog
- Re: Sp_changepassword
- Prev by Date: Re: Sp_changepassword
- Next by Date: Re: current security context is not trusted (cross db ownership ch
- Previous by thread: Re: Sp_changepassword
- Next by thread: Re: Sp_changepassword
- Index(es):
Relevant Pages
|