Re: Other way of Changing Password if does not have Server Role

From: Dejan Sarka (dejan_please_reply_to_newsgroups.sarka_at_avtenta.si)
Date: 09/22/03


Date: Mon, 22 Sep 2003 08:02:40 +0200


A user can change his password without being a member of the sysadmin role.
You just have to login as the user and then omit the 3rd parameter
(loginname) when using the sp_password system SP. Use just
EXEC sp_password 'old_pass', 'new_pass'
syntax.

-- 
Dejan Sarka, SQL Server MVP
FAQ from Neil & others at: http://www.sqlserverfaq.com
Please reply only to the newsgroups.
PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Mark Vergara" <markvergara007@hotmail.com> wrote in message
news:#SrYbVLgDHA.3024@tk2msftngp13.phx.gbl...
> Hi !
>
> This Mark Vergara Programmer  from Comtech Solutions
>
> We have been creating a user login with no default server role this means
> that the user we been created has no rights to do some database task, we
try
> to login the user we been created and try to changed the password and it
> returns the error
>
> "Only members of the sysadmin role can use the loginame option. The
password
> was not changed."
>
> So is there any possibel way to change the password w/o setting the Server
> to System Administrator or to Security Administrator
>
> Can you offer any advice to me?
>
> Thanks,
>
> Mark
>
>


Relevant Pages

  • Re: cannot acees two databases as owner
    ... it does not matter you are a member of the ... the sysadmin fixed server role or if there is no any other Login which is ... group if it's a domain) and you can login to your SQL Server with, ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL Login
    ... The sa login account is a member of that role as well. ... Dejan Sarka, SQL Server MVP ... > But how do we add the User X to the sysadmin / ...
    (microsoft.public.sqlserver.security)
  • Re: Getting the sa password with SQLDMO
    ... SQL Server stores passwords using a one-way hash so you can't read the ... conditional password change by attempting a connection using the expected sa ... password and, if it fails, connect using a different sysadmin role member ... member can change the sa password. ...
    (microsoft.public.sqlserver.programming)
  • Re: Discrepancy in number of rows and size of database
    ... How do I make sure that I'm a member of the SysAdmin role? ... with this tool you can catch all commands SQL Server is receiving. ... >> I'm trying to help a customer extract some data out of their SQL Server ...
    (microsoft.public.sqlserver.server)
  • Re: how to find out if a domain user is in the sysadmin server role?
    ... I connected with a login that is a member of a group that is a sysadmin. ... print 'Current user''s login is NOT a member of the sysadmin role' ...
    (microsoft.public.sqlserver.security)