SQL5 Flashcards
Login?
Is the process by which individual access to a computer system is controlled by identification of the user through the credentials he or she provides.
Permission?
Is used to grant an entity access to an object.
User account?
Is a logical representation of a person within an electronic system.
3 different methods to login SQL server?
Widows domain login
Username login
SQL server login
Sysadmin role?
Has full access to every server function, database, and object for that server.
3 different types of SQL server service accounts ?
Local user account
Local system account
Domain user account
Authentication?
Is the act of establishing or confirming a user or system identity.
Create or remove account
Syntax
CREATE LOGIN ‘xps\Joe’
DROP LOGIN ‘xps\joe’
Sa account
Is the built-in SQL administrator account associated with SQL authentication.
Fixed server roles (8)?
Bulkadmin: bulk insert operations
Dbcreator: create,alter, drop,restore database
Diskadmin:create,alter,drop disk files
Processadmin:kill a running SQL server process
Securityadmin :manage the logins for the server
Serveradmin:configure server-wide setting,full-text search,shutting down server
Setupadmin:configure linked servers, extended stored procedures,startup stored procedures
Systemadmin: installation,permission settings
Fixed database roles (9)?
Db accessadmin: only authorized a user to access the database
Db backupoperator: only backups,checkpoints.
Db datareader: authorized a user to read all data in the database
Db datawriter: allows to write all data in database
Db ddladmin: DDL commands
Db denydatareader
Db denydatawriter
Db owner: all permission in the database
Db securityadmin:
3 recovery models?
Simple recovery
Full recovery
Bulk recovery
Database backups?
Full backup
Differential backup: only backup data since the last full backup
Incremental backup: only backup data since the last full or incremental backup. (smaller,faster)
Database restores?
Complete database restore File restore Page restore Piecemeal restore Recovery only Transaction log restore Create a mirror database Create and maintain standby server
Sytanx
RESTORE DATABASE name of database FROM DISK =’name of backup’
GO