Re: Sp_changepassword



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
.



Relevant Pages

  • Re: Cannot move msdb/model even with -T3608
    ... seems to be much pickier than 2000 when applying options: ... that GUI is really really crappy. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Sp_changepassword
    ... So how should users be instructed to change their password, is the EM GUI ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Point in Time Backup (impossible for some points?)
    ... Enterprise Manager is not included in SQL 2005, ... Both tools have been superceded by SQL Server Management Studio. ... In any case, the GUI are just wrappers on the T-SQL commands, ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: SPROC wont execute - insufficient permissions
    ... the sysadmin role. ... Probably in the assumption in the ownership of the job. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Sp_changepassword
    ... one follow up, i noticed that using the 3rd option with sysadmin rights, ... So how should users be instructed to change their password, is the EM GUI ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)