Login IDs

To access a SQL Server, a user must be assigned a valid login ID: a unique name that follows the rules for identifiers and is used to identify a user on a SQL Server. A login ID is also sometimes referred to as a login.

The login IDs you need to create depend on the server's login security mode:

Other information is associated with a login ID. When you create a login ID, you will usually also:

For information about creating a login ID and specifying the above information, see Chapter 9, Managing Security. For information about usernames, aliases, and groups, see About Database Users.

The SA can manage all aspects of login IDs. A user is allowed to change his or her own password, default language, and default database.

If you no longer want a user to have access to a particular SQL Server, you must drop the user's login ID from that server. You cannot drop the login ID of a user who is the owner of the current database or a database object in the current database. You must transfer the ownership of the current database and drop owned objects from the current database before dropping the owner's login ID.

A login ID provides access to a SQL Server but does not allow a user to access any user databases. A database username and appropriate permissions are required to access and use a database. For information about providing database access, see About Database Users and About Permissions.