DROP LOGIN command in SQL Server
The tutorial explains how to use the DROP LOGIN command in SQL Server with syntax and examples.
The DROP LOGIN command is used to delete an identity (which is the Login login account) used to connect to SQL Server.
Syntax of DROP command LOGIN
DROP LOGIN ten_dangnhap;
Variable name or variable value
Username
The login name of the login account (Login) needs to be deleted.
Note
- Cannot delete the login account currently logged into SQL Server.
- If you delete the login account that the database user has mapped to, the user will be disconnected to SQL Server.
- See also the CREATE LOGIN and ALTER LOGIN commands.
For example
DROP LOGIN quantrimang;
For example, the DROP LOGIN command above will delete the login account quatrimang. This command can only run if quantrimang is currently not logged in. Otherwise, this command will fail.
Previous lesson: ALTER LOGIN command in SQL Server
The following article: Find Login in SQL Server
Update 25 May 2019
You should read it
- ALTER LOGIN command in SQL Server
- CREATE LOGIN command in SQL Server
- Find Login in SQL Server
- DROP USER command in SQL Server
- How to Unlock SQL Server Account
- How to delete the database in MS SQL Server
- Instructions to create, change, delete Windows 7 login password
- Ways to log in database on MS SQL Server
- DROP TABLE command in SQL Server
- How to enable the Login Login hidden on Windows 10
- How to remove PIN and other login options on Windows 10
- DELETE command in SQL Server
Maybe you are interested
How to disable Trackpad on a Mac How to drop airplane emoticons on Facebook What is most important to men when they are in their 30s? 9 things you should not do after graduating from college What is success? See 12 definitions of the success of the most successful people in the world! 7 habits every Monday morning of successful people