Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Databases Programming Interviews:BtrieveClipperData ModelingData StructuresDatabase AdministrationDatabase Administrator (DBA)Database AnalystDatabase DeveloperDB DevelopmentEDI/Data Integration ExpertFirebirdHierarchicalIBM DB2InformixJava DatabaseMariaDBMicrosoft Access DeveloperMongoDBMS SQL ServerMySQL ProgrammingNetworkNoSQLObject RelationalPostgrePostgreSQLProgressRDBMSRelationalSQLSQL AdministratorSQL and PL/SQLSQL Notification ServicesSQL server 2008SSRSStored ProcedureSybaseTeradata
Copyright © 2018. All Rights Reserved
MS SQL Server Interview Question:
How To Change the Password of a Login Name in MS SQL Server?
Submitted by: AdministratorIf 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 ggl_DBA WITH PASSWORD = 'globalguideline';
GO
Command(s) completed successfully.
ggl_DBA's password is changed now. Try it with the SQLCMD tool:
C:>SQLCMD -S LOCALHOSTSQLEXPRESS -U ggl_DBA -P globalguideline
1> QUIT
You can also use the "ALTER LOGIN" to change your own password.
Submitted by: Administrator
-- Login with sa
ALTER LOGIN ggl_DBA WITH PASSWORD = 'globalguideline';
GO
Command(s) completed successfully.
ggl_DBA's password is changed now. Try it with the SQLCMD tool:
C:>SQLCMD -S LOCALHOSTSQLEXPRESS -U ggl_DBA -P globalguideline
1> QUIT
You can also use the "ALTER LOGIN" to change your own password.
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.