Re: Sp_changepassword
- From: Jason <Jason@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Dec 2007 12:18:00 -0800
errr...nevermind. i must have been missing a quote or something.
"Jason" wrote:
thanks.
one follow up, i noticed that using the 3rd option with sysadmin rights,
worked unless i put a special character in the passwork like a *, the it
failed. why was that?
"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
- References:
- Re: Sp_changepassword
- From: Erland Sommarskog
- Re: Sp_changepassword
- Prev by Date: Re: Unable to View Database Diagrams
- Next by Date: Re: Sp_changepassword
- Previous by thread: Re: Sp_changepassword
- Next by thread: Re: Sp_changepassword
- Index(es):
Relevant Pages
|
|