Write for Us
- A Windows NT/2000 login that has been granted access to SQL Server. - A SQL Server login, that is maintained within SQL Server. These login names are maintained within the master database. So it is essential to backup the master database after adding new logins to SQL Server.
- A Windows NT/2000 login that has been granted access to SQL Server. - A SQL Server login, that is maintained within SQL Server.
- A Windows NT/2000 login that has been granted access to SQL Server.
- A SQL Server login, that is maintained within SQL Server.
These login names are maintained within the master database. So it is essential to backup the master database after adding new logins to SQL Server.
During a new connection request, SQL Server verifies the login name supplied, to make sure that login is authorized to access SQL Server. This verification process is called authentication. SQL Server supports two authentication modes:
One point to note is that whatever mode you configure your SQL Server to use, you can always login using Windows authentication. Windows authentication is the recommended security mode, as it is more secure and you don't have to send login names and passwords over the network. You should avoid mixed mode, unless you have a non-Windows NT/2000 environment, or when your SQL Server is installed on Windows 95/98, or for backward compatibility with your existing applications. SQL Server's authentication mode can be changed using Enterprise Manager (Right-click on the server name and click on “Properties,” then go to the “Security” tab). Authentication mode can also be changed using SQL DMO object model, allowing developers to write programs to manage SQL Server security.Here is a list of helpful stored procedures for managing logins and users:
Now let's talk about controlling access to objects within the database, and managing permissions. Apart from managing permissions at the individual database user level, SQL Server 7.0 and 2000 implements permissions using roles. A role is nothing but a group to which individual logins and users can be added, so that the permissions can be applied to a group, instead of applying the permissions to all the individual logins and users.