Security
Here are the somewhat fragmentary notes from our discussion on Security
Prevent Damage to Database
malicious attacks--
Accidents -- update table
Authentication--password username, windows
There are two basic kinds of Authentication
Windows, mapping windows user accounts to SQl Server
Sql Server Authentication-- a password and user name
2 step authentication, biometrics, voice, facial
Certificates Encryption
Authorization--What permissions do you have
Select read
Insert--write
update--write change
Delete remove data
execute run procedures
create--create database objects
Alter --modify database objects
Drop--remove database object
Actors--who is going use the database
Actor Fan Tables Select Insert Update Delete Notes Venue X Artist X Fan x x x Update own records only
Here is the code for creating a login, a user, a role, granting permissions to the role, and adding the user to the role
Grant create Table to DonorRole Create Login George with password='Pass' Use CommunityAssist Create User George for login George Create Role ClientRole Grant select, insert on ServiceGrant to ClientRole Grant Select on CommunityService to ClientRole exec sp_addrolemember Clientrole, George
No comments:
Post a Comment