August 14, 2013 at 4:09 pm
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.
August 14, 2013 at 4:14 pm
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
August 14, 2013 at 4:29 pm
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