Understanding Access ControlThe basis of security for your SQL Server is this: Users should haveappropriate access to the data they need, no more and no less. In otherwords, users should not have too much access to too much data.Consider the following:. Most users need to read and write data from tables, but fewusers will ever need to be able to create and drop tables.. Some users might need to read tables but might not need toupdate them.. You might want to allow users to add data, but not delete data.. Some users (managers or administrators) might need rights tomanipulate user accounts, but most should not.. You might want users to access data via stored procedures, butnever directly.. You might want to restrict access to some functionality based onwhere the user is logging in.These are just examples, but they help demonstrate an important point.You need to provide users with the access they need and just the access they need. This is known as access control, and managing access controlrequires creating and managing user accounts.
When first installed, SQL Server creates a user account named sa (for SystemAdministrator), which has complete and total control over the entire SQLServer. You might have been using the sa login throughout the lessons inthis book, and that is fine when experimenting with SQL Server on nonliveservers. But in the real world you’d never use sa on a day-to-daybasis. Instead, you’d create a series of accounts, some for administration,some for users, some for developers, and so on.
NOTE: Preventing Innocent MistakesIt is important to note that access control is not just intended tokeep out users with malicious intent. More often than not, datanightmares are the result of an inadvertent mistake, a mistypedT-SQL statement, being in the wrong database, or some other usererror. Access control helps avoid these situations by ensuring thatusers are unable to execute statements they should not beexecuting.
CAUTION: Don’t Use saThe sa login should be considered sacred. Use it only whenabsolutely needed (perhaps if you cannot get in to other administrativeaccounts). sa should never be used in day-to-day SQL Serveroperations.
Web Tech Vision 2007


جواب بصورت نقل قول