Are there other new features that are worth mentioning?
We have also added a deny statement that can be used by an administrator to prevent a user from all access to an object. In the SQL
In Server 6.5 You can run two revoke statements on a single line to emulate the deny statement to some extent.
In SQL Server 7.0, if you want to prevent someone from viewing a table, you can use deny to suppress his select permissions. You should use the Deny statement with great care. For example: If you have select and insert permissions on the authors table, and as a member of an NT group, you also have update permissions. However, another NT group that you are in has been banned from insert and update permissions by the DENY statement. As a result, you have only select permission. The DENY statement disables access to database objects, so you want to make sure that no deny statements are used against the public group because any user is always a member of the public group. A lot of inexperienced administrators did this, and then they had to call us for help.
Deny not only can be used for database objects, it can also be used for login names. For example, you granted the NT group "domain
Users to log on to SQL Server. Joe just got fired, but he doesn't know yet. You cannot simply use the REVOKE statement to cancel Joe's login because he is not granted the logon permission individually, but with other members as "domain
A member of the Users group is granted logon permissions together. You can then use the DENY statement specifically against Joe. So he can't log in to SQL
Server, and other members of the same group are still available.
How does the application role work?
The best way to explain the role of an application is to describe it in practice. Let's say you want to be an employee payroll application that allows users to update their pay. Of course you don't want to allow users to simply log on to SQL
Server and then change the payroll. If an employee can do that, he may try to change his own salary. A more appropriate approach is to use a payroll application that can perform specific security checks, such as not allowing users to update their own wages.
That's how it works. Your payroll application logs on to SQL at the user's security level
Servers so that the server Audit tracking tool can know exactly who is logging on to SQL Server. Your application then switches to the appropriate database and invokes the system stored procedure "sp_setapprole" to start the application role. The application role is password protected, so you need to pass the password as a parameter to sp_setapprole. When data is transmitted online, you can also encrypt the password.
Once the application role is started, the user's existing permissions are turned off, and the security permissions for the application role are opened accordingly. Your application can now use the application role to perform the operation of modifying the database.
One problem to note is that the application role is specific to the connection. If you open two to SQL at the same time
Server, you must ensure that the application roles for each connection are opened. When you use application roles, the first thing to do is to invoke the "sp_setapprole" stored procedure once the connection is opened and converted to the appropriate database. If you do not start an application role, you will not be able to access data that is proprietary to any application role.