Q1
True / FalseA stored procedure in Microsoft SQL Server can include transaction control statements.
Stored procedures can include transaction control statements such as BEGIN TRANSACTION, COMMIT, and ROLLBACK.
Q2
True / FalseStored procedures in Microsoft SQL Server cannot return result sets.
Stored procedures can return result sets by using SELECT statements.
Q3
True / FalseA stored procedure can call another stored procedure in Microsoft SQL Server.
Stored procedures can call other stored procedures, allowing modular programming.
Q4
True / FalseStored procedures in Microsoft SQL Server can use temporary tables.
Stored procedures can create and use temporary tables within their execution context.
Q5
True / FalseStored procedures in Microsoft SQL Server cannot handle errors.
Stored procedures can handle errors using TRY...CATCH blocks.
Q6
True / FalseStored procedures in Microsoft SQL Server can improve performance by reducing network traffic.
Stored procedures can reduce network traffic by executing multiple SQL statements in a single call.
Q7
True / FalseStored procedures cannot be used to enforce business rules in Microsoft SQL Server.
Stored procedures can enforce business rules by encapsulating logic that must be followed.
Q8
True / FalseYou can use dynamic SQL within a stored procedure in Microsoft SQL Server.
Dynamic SQL allows the construction and execution of SQL statements at runtime.
Q9
True / FalseStored procedures in Microsoft SQL Server can only be written in T-SQL.
While T-SQL is the primary language, stored procedures can also be written in CLR (Common Language Runtime) languages.
Q10
True / FalseUsing stored procedures in Microsoft SQL Server can simplify application maintenance.
Stored procedures encapsulate database logic, making it easier to maintain and update applications.
Q11
True / FalseStored procedures in Microsoft SQL Server cannot return output parameters.
Stored procedures can return output parameters, which can be used to pass values back to the caller.
Q12
True / FalseYou can schedule a stored procedure to run automatically in Microsoft SQL Server.
Stored procedures can be scheduled using SQL Server Agent jobs.
Q13
True / FalseStored procedures in Microsoft SQL Server can improve security by controlling access to data.
Stored procedures can restrict direct access to data, allowing only the execution of controlled operations.
Q14
True / FalseStored procedures cannot be nested in Microsoft SQL Server.
Stored procedures can be nested by calling one stored procedure from within another.
Q15
True / FalseStored procedures can only be executed by users with admin privileges in Microsoft SQL Server.
Stored procedures can be executed by any user with the appropriate permissions.