Questions regarding sql server 2005. Mainly from stored procedures, triggers and indexes.
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
TRUE
FALSE
Rate this question:
True
False
Rate this question:
Local stored Procedures
Temporary Stored Procedures
Extended Stored Procedures
Rate this question:
True
False
Rate this question:
Composite index
Full text index
Xml index
Rate this question:
Extended or CLR Stored Procedures
T-SQL Stored Procedures
Local stored Procedures
Rate this question:
Sp_depends
Sp_help
Sp_helptext
Rate this question:
A values zero...................a non-zero
A non-zero .................a zero
A non-zero ........... a greater than zero
Rate this question:
Visible only to the user that create them.
Use # prefix before the procedure name
Visible for all users
Use ##
Can be used any user
Rate this question:
Remote Stored Procedures
CLR Stored Procedures
Custom Stored Procedures
Rate this question:
Denied immediately
Executed sucessfully
Had some error messages
No Action
Rate this question:
Reduced client/server traffic
Reuse of code.
Implicit invockation
Rate this question:
MESSAGE_ERROR()
ERROR_MESSAGE()
@@ERROR
@@ERROR_LINE
Rate this question:
Local Temporary Procedures
Temporary Stored Procedures
Remote Stored Procedures
Global Temporary Procedures
Rate this question:
A replaced procedure is dipslay.
An error message is display
No procedure display
B and C
Rate this question:
VALUE_RETURN()
RETURN
RETURN_INT()
Rate this question:
Fill factor
Pad_index
Nestlevel
Rate this question:
Procedures and functions must return values
Procedures and functions may return value
Procedures may return values
Functions must return values
Rate this question:
Fillfactor
Pad_index
Unique
Computed
Rate this question:
Are dropped at the end of the last session
Can be used any user
Are visible for all users
Can only be used by its owner
Are dropped at the end of the current session
Rate this question:
If the OUTPUT key word is omitted, the procedure is still exceuted
If the OUTPUT key word is omitted, the procedure is still exceuted but does not return a value
If the OUTPUT key word is omitted, the procedure is not exceuted but is not return a value
If the OUTPUT key word is omitted, the procedure is still exceuted and return a value
Rate this question:
Return information from each row on which the INSERT, UPDATE, and DELETE have been executed
Useful to retrieve the value of an identity or computed column after an INSERT or UPDATE operation
Print out a Variable
Create stored procedures for performance of various tasks, they are referred to as user-defined or custom stored procedures
Rate this question:
Object_definition()
Sp_helptext
Sp_depends
Sp_display
Rate this question:
System stored procedure use to display the dependencies of a stored procedure
System function used to display the definition of a stored procedure
System view used to display definition of a stored procedure
System function used to display the definition of a stored procedure by specifying the object ID of the procedure
Rate this question:
Input parameters
Output parameters
Name of stored procedure
Nothing
Rate this question:
The OUTPUT parameters can be of TEXT and IMAGE data type.
The calling statement must contain a variable to receive the return value
The variable can be used in subsequent T-SQL statements in the batch or the calling procedure
Output parameter can not be cursor placeholders
Rate this question:
16
25
32
Rate this question:
When the RETURN statement is used in a stored procedure, It can return a null value. if a procedure tries to return a null value, a warning message is generated and the value zero is returned.
When the RETURN statement is used in a stored procedure, It can not return a null value. if a procedure tries to return a null value, a warning message is generated and the value zero is returned
When the RETURN statement is used in a stored procedure, It can not return a null value. if a procedure tries to return a null value, a warning message is generated and the value one is returned
A and C
Rate this question:
True
False
Rate this question:
Is a set of pre-compiled T-SQL statements executed as a single unit.
Is a set of T-SQL that are executed as a single block of code that performs a specific task.
Is used in database Administrative and information activities.
Can be created to carry out repetitive
Rate this question:
@@ERROR_LINE : Returns the line number that caused the error
@@ERROR : Returns the error number for the error in the last T_SQL statment
The return code indicates the execution status of the stored procedure
@@MESSAGE_ERR is available
@ERR_MESSAGE() is used for display error message
Rate this question:
Create
Insert
Drop
Update
Delete
Rate this question:
SP_helptext 'index_name'
Sp_helpindex 'table_name'
Sp_textindex 'table_name'
Sp_helpindex 'index_name'
Rate this question:
The record is deleted from the trigger table and inserted in the inserted table
The record is deleted from the trigger table and inserted in the deleted table
The deleted record stored in the deleted table is copied back to the Trigger table
The deleted record stored in the deleted table is lost when Trigger is executed
Rate this question:
The stored procedure can not be nested
The maximum level of nesting is 32
There is no limit as to the number of stored procedure that can be called from a given stored procedure
None above
Rate this question:
Is executed in place of the INSERT, UPDATE or DELETE operation
Can not be created on views, It is only on tables
Are executed before constraint checks are performed on the table.and They executed after creating Inserted and Deleted tables,
A tables or a view can have any INSTEAD OF trigger defined for INSERT, UPDATE, and DELETE.
Rate this question:
Trigger can not be executed directly nor do they pass or receive parameters.
Trigger can not be executed directly nor do they pass or receive parameters.
DML Trigger is a stored procedure that executed when data in a specified table is modified.
Trigger is the same as Check constraint
Trigger are often created to enforce referential integrity among logically related data in different table
Rate this question:
Each triggering action can have multiple AFTER triggers
Two triggers action on a table can have the same first and last triggers
Trigger definition can be viewed if the information is not encrypted
DML trigger definition can be modified by dropping and creating the trigger
Rate this question:
Are used to check and control database operations.
Operate only after the table or view is modified.and are defined either at the database or the server level
Are defined at the database level
Are used to enforce business rules when data is modified in tables or views
Are used to enforce business rules when data is modified in tables or views
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.