Server Interaction  «Prev  Next»

SQL Server [Transactions] - Quiz

Each question is worth one point. Select the best answer for each question.
 

1. Which of the following Transact-SQL statements is NOT an accurate variable declaration?
Please select the best answer.
A.
B.
C.
D.

2. John wants to return the database name for database ID 1. He decides to use the DB_NAME function and pass the ID. Which of the following statements could he use?
Please select the best answer.
A.
B.
C.
D.

3. What is wrong with the following Transact-SQL statement?

RAISERROR ('An error occurred', 19, 1)
Please select the best answer.
A.
B.
C.
D.

4. In SQL Server 2025, which of the following is a valid way to create a vector index on a column that stores embeddings?
Please select the best answer.
A.
B.
C.
D.

5. Which Transact-SQL statement correctly uses GENERATE_SERIES to generate numbers from 1 to 10?
Please select the best answer.
A.
B.
C.
D.