MS SQL Server – 19 – Alter Database & Table MCQ

19 – Alter Database & Table MCQ

Best of luck!

1 / 25

1. What is the primary purpose of the ALTER DATABASE statement in SQL Server?

2 / 25

2. In SQL Server, which statement is used to change the name of a database?

3 / 25

3. What is the purpose of the MODIFY FILE option in the ALTER DATABASE statement?

4 / 25

4. In SQL Server, which statement is used to add a new filegroup to a database?

5 / 25

5. What is the role of the ALTER TABLE statement in SQL Server?

6 / 25

6. In SQL Server, which statement is used to add a new column to an existing table?

7 / 25

7. What is the purpose of the MODIFY COLUMN option in the ALTER TABLE statement?

8 / 25

8. In SQL Server, which statement is used to delete a column from an existing table?

9 / 25

9. What is the primary role of the ALTER TABLE DROP CONSTRAINT statement in SQL Server?

10 / 25

10. In SQL Server, which statement is used to modify an existing constraint on a table?

11 / 25

11. What is the purpose of the ENABLE TRIGGER option in the ALTER TABLE statement?

12 / 25

12. In SQL Server, which statement is used to rename a table?

13 / 25

13. What is the role of the ALTER TABLE statement when it includes the SET SCHEMA option?

14 / 25

14. In SQL Server, which statement is used to change the collation of a column in an existing table?

15 / 25

15. What is the primary purpose of the DISABLE TRIGGER option in the ALTER TABLE statement?

16 / 25

16. In SQL Server, which statement is used to change the data type of a column in an existing table?

17 / 25

17. What is the role of the ALTER TABLE statement when it includes the ADD CONSTRAINT option?

18 / 25

18. In SQL Server, which statement is used to modify the properties of an existing index on a table?

19 / 25

19. What is the primary purpose of the ALTER TABLE statement when it includes the RENAME COLUMN option?

20 / 25

20. In SQL Server, which statement is used to delete all records from an existing table?

21 / 25

21. What is the role of the ALTER TABLE statement when it includes the DISABLE option for a constraint?

22 / 25

22. In SQL Server, which statement is used to enable a previously disabled trigger on a table?

23 / 25

23. What is the purpose of the SET IDENTITY_INSERT option in the ALTER TABLE statement?

24 / 25

24. In SQL Server, which statement is used to change the identity seed value of an identity column in an existing table?

25 / 25

25. What is the primary role of the ALTER TABLE statement when it includes the ADD COLUMN option?

Your score is

0%