0

databases Online Quiz - 4

Description: databases Online Quiz - 4
Number of Questions: 20
Created by:
Tags: databases
Attempted 0/20 Correct 0 Score 0

@@Error returns the sys.messages.message_id column value if an error occurs in the last T-SQL statement executed.True/False?

  1. True

  2. False


Correct Option: A

Which of the Isolation levels causes "Dirty Read"?

  1. Read Uncommitted

  2. Read Committed

  3. Repeatable Read

  4. Snapshot

  5. Serializable


Correct Option: A
  1. A run time error occurs

  2. Returns all the column names in the table but no records

  3. Returns all the records in the table

  4. Returns nothing

  5. Returns NULL


Correct Option: B
  1. This includes NULL values and duplicate

  2. This includes NULL values but not the duplicates

  3. This does not include NULL values and duplicates

  4. None of the above


Correct Option: A

sys.sql_modules system catalog contains a row for each object of type P, RF, V, TR, FN, IF, TF, R, and D.

  1. True

  2. False


Correct Option: A

We can write triggers for Truncate.

  1. True

  2. False


Correct Option: B

MARS stands for:

  1. Multiple Active Record Sets

  2. Multiple Active Result Sets

  3. Multiple Account Record Sets

  4. Multiple Account Result Sets


Correct Option: A

There must be at least one log file for each database.

  1. True

  2. False


Correct Option: A

A trigger name in SQL 2005 cannot start with #.

  1. True

  2. False


Correct Option: A

Which one of the below, returns the maximum number of simultaneous user connections allowed on an instance of SQL Server?

  1. @@MAX_CONNECTIONS

  2. @@TRANCOUNT

  3. @@CONNECTIONS

  4. None of the above


Correct Option: A

Choose the correct option:

  1. When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to UNKNOWN if the data value is NULL

  2. When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to UNKNOWN if the data value is NOT NULL

  3. When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to FALSE if the data value is NULL

  4. When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to TRUE if the data value is NULL


Correct Option: D
  1. A CTE is created using the WITH statement

  2. A CTE is created using the SELECT statement

  3. A CTE is created using the CREATE statement

  4. None of the above


Correct Option: A
  1. sp_who

  2. sys.dm_tran_locks

  3. @@lock_timeout

  4. sp_lock

  5. None of the above


Correct Option: D
  1. SELECT

  2. DENY

  3. APPLY

  4. UPDATE

  5. None of the above


Correct Option: B
- Hide questions