Collections:
"ALTER LOGIN" - Changing the Password of a Login Name in SQL Server
How To Change the Password of a Login Name in SQL Server?
✍: FYIcenter.com
If a developer lost the password of his or her login name, you can reset the password with the "ALTER LOGIN" statement as shown in this tutorial example:
-- Login with sa ALTER LOGIN FYI_DBA WITH PASSWORD = 'fyicenter'; GO Command(s) completed successfully.
FYI_DBA's password is changed now. Try it with the SQLCMD tool:
C:\>SQLCMD -S LOCALHOST\SQLEXPRESS -U FYI_DBA -P fyicenter 1> QUIT
You can also use the "ALTER LOGIN" to change your own password.
⇒ "ALTER LOGIN" - Changing a Login Name in SQL Server
⇐ sys.server_principals - Listing All Login Names in SQL Server
2016-10-20, 1568🔥, 0💬
Popular Posts:
What Is SQL*Plus in Oracle? SQL*Plus is an interactive and batch query tool that is installed with e...
How To Update Multiple Rows with One UPDATE Statement in SQL Server? If the WHERE clause in an UPDAT...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...
What Is the Difference Between GETDATE() and GETUTCDATE() in SQL Server Transact-SQL? The difference...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...