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, 2912🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
How to calculate the storage size of a JSON (JavaScript Object Notation) value using the JSON_STORAG...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
How to execute statements in loops in SQL Server Transact-SQL? How to use WHILE ... loops? You can u...