Script to reset password for SQL 2000

  • Hi,

    Does anyone have t-sql script to change password for SQL 2000? I tried the below script but I am getting an error, not exactly sure where I am off. Please advise.

    ALTER LOGIN 'LoginName' WITH PASSWORD=N'Password' MUST_CHANGE

    getting error as below.

    Server: Msg 170, Level 15, State 1, Line 1

    Line 1: Incorrect syntax near 'LOGIN'.

    Regards,
    SQLisAwe5oMe.

  • That's 2005+ syntax.

    Look up sp_password for SQL 2000 and older.

    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
  • GilaMonster (8/14/2013)


    That's 2005+ syntax.

    Look up sp_password for SQL 2000 and older.

    Thanks Gail.

    Regards,
    SQLisAwe5oMe.

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

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