Results 1 to 7 of 7

Thread: Reset Admin password - MSSQL 2005 express - NOT MySql

  1. #1
    TakeMarket is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    133

    Exclamation Reset Admin password - MSSQL 2005 express - NOT MySql

    Well,...
    to make a long story short - we had one of our servers running a sugar instance turned off for 4 months and now we cannot login directly/the normal way,so we need to reset the password.

    But there are only manuals on how to reset a mysql system on the sugar website...

    so the question is: How do you reset the admin password on a mssql 2005 system?

    Thanks in advance.
    Last edited by TakeMarket; 2008-02-15 at 04:02 AM.

    Kind regards
    Take Market™
    http://www.takemarket.com

    We take market for you.™

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Try this (on the MSSQL server):

    Start > Run > CMD <enter>

    At the command window:

    1. sqlcmd -S <mssql server/instance name> <enter>

    That should get you connected to MSSQL and give you a prompt like "1>"

    Type the following:

    use <name of your sugarcrm database> <enter>
    go <enter>

    update users set user_hash = 'ada15bd1a5ddf0b790ae1dcfd05a1e70' where user_name = 'admin' <enter>
    go <enter>

    That should reset your password to "sugar"
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    TakeMarket is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    133

    Thumbs up Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Thanks,Angel - you truly are an Angel :-)

    I'll get back with a status on how it went.

    Thanks a lot.

    Kind regards
    Take Market™
    http://www.takemarket.com

    We take market for you.™

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Quote Originally Posted by TakeMarket

    I'll get back with a status on how it went.
    Please do, as I added it to the Wiki page with the MySQL stuff and I want to make sure I didn't overlook anything.

    Glad I could help.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    TakeMarket is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    133

    Default Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Hi Angel,

    So I finally got some time to look into the server issue (it's been a hell of a week ) we have with the old sugar server and:

    everything goes well until step 2:
    (names have been altered)

    PHP Code:
    1mysqlDB
      2
    go
      Msg 2812
    Level 16State 62Server companyserver-00sqlserver2005Line 1
      Could not find stored procedure 
    'mysqlDB'
    So... no it's not working. any ideas?
    thanks a lot in advance..

    Kind regards
    Take Market™
    http://www.takemarket.com

    We take market for you.™

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Quote Originally Posted by TakeMarket
    Hi Angel,

    So I finally got some time to look into the server issue (it's been a hell of a week ) we have with the old sugar server and:

    everything goes well until step 2:
    (names have been altered)

    PHP Code:
    1mysqlDB
        2
    go
        Msg 2812
    Level 16State 62Server companyserver-00sqlserver2005Line 1
        Could not find stored procedure 
    'mysqlDB'
    So... no it's not working. any ideas?
    thanks a lot in advance..
    Shouldnt it be "use mysqlDB" in that first line (the one labeled "1>")?
    Last edited by kbrill; 2008-02-25 at 01:53 AM.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    TakeMarket is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    133

    Red face Re: Reset Admin password - MSSQL 2005 express - NOT MySql

    Hmm, say no more.. embarrassing... Kbrill your are right.. as always.

    Every thing worked out fine..

    To Kbrill, if you got some time.. could you, or maybe get a colleague to help us out with this thread?

    http://www.sugarcrm.com/forums/showthread.php?t=30688

    We posted for more than a week ago - but no one has responded to our issue. We cannot upgrade and install new modules because of this. We would appreciate this a lot.

    Thanks a lot in advance.

    And to Angel - thanks again - it worked fine!

    Kind regards
    Take Market™
    http://www.takemarket.com

    We take market for you.™

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I reset the admin password?
    By clint in forum Help
    Replies: 11
    Last Post: 2011-09-30, 06:13 AM
  2. Lost Admin Password on Windows XP
    By sloan in forum Help
    Replies: 4
    Last Post: 2007-07-21, 01:21 PM
  3. Huge backups -- normal?
    By Liam in forum Help
    Replies: 5
    Last Post: 2007-05-02, 05:36 AM
  4. Replies: 7
    Last Post: 2007-02-14, 03:48 PM
  5. MySQL error/no workflow notifications
    By rlbyrd in forum Help
    Replies: 1
    Last Post: 2006-09-11, 09:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •