RelationalDBDesign
SiteMap
Business Rules
Cursors Views
Database Creation
SQL Monitoring
Database Web Apps
Data Manipulation
Access Features
Building Access DB
Server Interaction
«Prev
Next»
Business Rules
Transaction Locking
Define Transactions
Three Transactions Modes
Define Isolation Levels
Identify Nested Transactions
Transaction Isolation - Quiz
Optimistic Pessimistic Locking
Deadlock Transaction Blocking
Avoid Server Deadlocks
Commit Rollback Transaction
Manage Distributed Tx
Error Handling Testing
Transaction Locking Conclusion
Server Interaction
Assign Use Variables
SQL Server Functions
SQL Function Statements
Date Time Functions
Reporting Errors
SQL Raising Errors
Programming Concepts Conclusion
SQL-Server Triggers
Trigger SQL Server Utility
Three Trigger Types
Enforcing Business Rules
Creating SQL Triggers
Practice Creating Triggers
Creating Triggers - Exercise
Implementing SQL-Server-Triggers
Modifying Triggers
Deleting SQL-Server Triggers
Testing SQL-Server Trigger
SQL Trigger Conclusion
SQL Triggers-Quiz
Stored Procedures
What is SP
Enforcing Business Rules
Creating SP
User Defined SP
Stored Procedures - Exercise
Modifying Procedures
Deleting Stored Procedures
System Extended SP
Error Handling
Using Output Parameters
Executing Stored Procedures
Testing Stored Procedures
Different SP Conclusion
Stored Procedure - Quiz
Accessing Remote Data
Enterprise Manager Server
Adding Remote Login
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.
DECLARE @x varchar
B.
DECLARE @x int
C.
DECLARE @x myusertype
D.
DECLARE @@x int
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.
DB_NAME(1)
B.
DB_NAME 1
C.
SELECT DB_NAME(1)
D.
SELECT DB_NAME 1
3.
What is wrong with the following Transact-SQL statement?
RAISERROR ('An error occurred', 19, 1)
Please select the best answer.
A.
Nothing is wrong. The statement will work correctly.
B.
You cannot specify text in the RAISERROR statement. You need to specify a number.
C.
The statement is missing the WITH LOG option.
D.
The severity is outside the range of allowable values.
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.
CREATE INDEX idx_embedding ON MyTable(EmbeddingColumn)
B.
CREATE VECTOR INDEX idx_embedding ON MyTable(EmbeddingColumn) WITH (METRIC = 'cosine', TYPE = 'DISKANN')
C.
ALTER TABLE MyTable ADD VECTOR INDEX idx_embedding (EmbeddingColumn)
D.
CREATE INDEX idx_embedding ON MyTable USING VECTOR(EmbeddingColumn)
5.
Which Transact-SQL statement correctly uses GENERATE_SERIES to generate numbers from 1 to 10?
Please select the best answer.
A.
SELECT value FROM GENERATE_SERIES(1, 10)
B.
SELECT * FROM GENERATE_SERIES(1, 10)
C.
SELECT value FROM GENERATE_SERIES(start=1, stop=10)
D.
SELECT * FROM SERIES(1, 10)