SQL authenticated logins and passwords

  • Any ways to generate SQL logins with passwords ...

    Revlogin and other scripts will give the password but that will be encrypted .. I am looking for the actual password and not the encrypted one .. possible ?

  • No.

    The passwords aren't encrypted. They're hashed and cryptographic hashes are one-way processes. You cannot extract the plain-text password from the hash.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • You can however retrieve and later or on another server recreate logins giving the hashed password; i.e. even though you can't read it, the user will still be able to use his original password.

    select name, password_hash

    from sys.sql_logins sql

    where type = 'S'

    Books Online: sys.sql_logins

    Books Online: CREATE LOGIN



    Posting Data Etiquette - Jeff Moden[/url]
    Posting Performance Based Questions - Gail Shaw[/url]
    Hidden RBAR - Jeff Moden[/url]
    Cross Tabs and Pivots - Jeff Moden[/url]
    Catch-all queries - Gail Shaw[/url]


    If you don't have time to do it right, when will you have time to do it over?

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply