Section A- Theory (40 Marks}
Question 1
Choose True or False
(10 Marks]
No
Questions
1
Each transaction is implicitly started with the BEGIN
TRANSACTION
2
DCL triggers respond to server and database events such as
CREATETABLE and DROPTABLE statements.
3
Server databases are designed to serve limited users at a
time
4
ROLLBACKTRANSACTION rolls back an explicit transaction to
the end of the transaction
5
Primary data file constructs a SQL Server database
6 Stored procedures can have a single integer return value
7 sp_rename allows to rename of objects
8
Output parameters are used to return a value like a function
9 The ALTERTRIGGERstatement creates a stored trigger
True (T}
False (F}
10 Once a stored procedure is dropped its content is still saved
Question 2
Compare and explain the difference between the two statements.
Statement 1:
Execute add_employee '1','Chantelle','Van Wyk','Ms','2000','Female'
Statement 2:
Execute add_employee
Question 3
Compare and explain the difference between the two statements.
Statement 1:
CREATEPROCEDUREadd_employee_with_parameters
Statement 2:
ALTER PROCEDUREadd_employee_with_parameters
Question 4
Compare and explain the difference between the two statements.
Statement 1:
CREATEPROCEDUREadd_employee
AS
2
(4 Marks]
(4 Marks]
(4 Marks]