Il 0% ha trovato utile questo documento (0 voti)
133 visualizzazioni3 pagine

SQL Quiz

SQL Server DBA related Quiz.

Caricato da

Sachitra Khatua
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato DOCX, PDF o leggi online su Scribd
Il 0% ha trovato utile questo documento (0 voti)
133 visualizzazioni3 pagine

SQL Quiz

SQL Server DBA related Quiz.

Caricato da

Sachitra Khatua
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato DOCX, PDF o leggi online su Scribd
Sei sulla pagina 1/ 3
1. Which of the following below are valid database states? (OFFLINE. ‘SUSPECT EMERGENCY All of the above CORRECT ANSWER: All of the above 2, What is a MULTL_USER in sql server? Users that nave tne appropriate permissions to connect to the database are alowed (One user at a tme Is alowes to connect to ine dataoase (Only some members are allowed to access tne database (Only the system aamin and some members are allowed to access the datavase CORRECT ANSWER : users that nave the appropriate permissions to connect to the database are allowed ‘3. Why type of user is the default in sql server? SINGLE_USER MULTI_USER RESTRICTED_USER ROOT_USER CORRECT ANSWER : MULTIUSER 4, How do we delete a login ? DELETE LOGIN login_name DROP LOGIN login_name ‘A login cannot be deleted but only disabled DISABLE LOGIN login_name CORRECT ANSWER : DROP LOGIN login_name 5. Can we temporarily disable a login name? Yes No CORRECT ANSWER : Yes 6. For every unique constraint on a column, SQL server will create Does not create any index clustered index for that column index for that column Non-clustered index for that column CORRECT ANSWER : non-clustered index for that column 7. A candidate key cannot be regarded as a possible primary key True False CORRECT ANSWER: False 8. CREATE DATABASE has how many mandatory parameters? o1 2 a None CORRECT ANSWER: 1 ‘9. Which operation, when performed on a database can throw an error “The database could not be exclusively locked to perform the operatior DELETE database DROP database Rename database DISABLE database CORRECT ANSWER : Rename database 10. Whats the difference between adhoc queries from stored procedures? ® Adhoc queries are placed embedded in the business logic code Stored procedures are placed embedded in the business logic code There is no difference as both are fired on the databases None of the above CORRECT ANSWER : Adhoc queries are placed embedded in the business logic code 11. Stored procedures are safe from SQL injection attacks © Tue False CORRECT ANSWER: True 13. In which database state, the database Is In single-user mode and may be repaired or restored. OFFLINE SUSPECT © EWERGENCY All of the above CORRECT ANSWER : EMERGENCY

Potrebbero piacerti anche