These Microsoft SQL Server multiple-choice questions and their answers will help you strengthen your grip on the subject of Microsoft SQL Server. You can prepare for an upcoming exam or job interview with these Microsoft SQL Server MCQs.
So scroll down and start answering.
A. All of these are supported
B. MAX
C. MIN
D. AVG
A. When casting to desired data type failed it will result NULL
B. When casting to desired data type failed it will result Error
C. When casting to desired data type failed it will result 0
D. When casting to desired data type failed it will result Empty
A. False
B. True
A. OR
B. AND
C. IN
D. WHERE
A. WHERE
B. AND
C. OR
D. IN
A. Always On
B. Online Index Reorgs
C. Online Index Rebuilds
D. Mirroring
E. Log Shipping
A. None of these
B. Only in FILESTREAM
C. Only in Sparce columns
D. Both FILESTREAM and Sparse columns
A. delimiters
B. literal value
C. identifiers
D. figurative value
A. False
B. True
A. TRY
B. SET XACT_ABORT OFF
C. SET ARITHABORT ON
D. SET XACT_ABORT ON
A. Database Level
B. Nondeterministic
C. User Defined
D. Server Level
E. Deterministic
A. Update the field1 column to the value 1 in only 100 records in the table
B. Produce and error
C. Update the field1 column to the value 1 in all 1000 records in the table
A. CONVERT()
B. ISNULL()
C. GETDATE()
D. COUNT()
E. LEN()
A. select [column] from cte myCTE ([column]) as (select ...);
B. with select [column] from myCTE ([column]) as (select ...);
C. with myCTE ([column]) as (select ...) select [column] from myCTE;
D. using cte myCTE ([column]) as (select ...) select [column] from myCTE;
A. Database Clustering Checker
B. Database Connection Checker
C. Database Consistency Commands
D. Database Communication Checker
A. SET NOCOUNT ON
B. SET STATISTICS IO ON
C. SET NOCOUNT OFF
D. SET STATISTICS TIME ON
E. SET STATISTICS IO OFF
A. Variable Length
B. Fixed Length
A. True
B. False
A. select ... inner join [tbl] on ROW_NUMBER() = [tbl].[id];
B. select ... ROW_NUMBER() over (partition by [group_val] order by [id]) as [row] ...;
C. select ... ROW_NUMBER() as [row] ... group by [group_val] order by [id];
D. select ROW_NUMBER();
A. 1443
B. 1433
C. 1434
D. 1343
E. 1143
A. STRLEN
B. LENGTH
C. LEN
A. Updating a report file
B. Performing joins between calculated sets
C. Setting user permissions
D. Synchronizing changes between two databases
A. Memory versus disk space
B. Network bandwidth versus memory
C. Tables versus functions
D. Performance versus disk space
A. SSIS
B. Backup Restore
C. Analysis Services
D. Data Import & Export
A. CASCADE
B. SET NULL
C. NO ACTION
D. SET DEFAULT
A. Converts a SQL statement into machine code
B. Causes the SQL engine to recompile itself from source
C. Causes SQL Server to rebuild the query plan for a stored procedure on every call
D. Binds a CLR static method to a stored procedure
A. pte
B. guest
C. sys
D. dbo
A. FILESTREAM
B. TIMESTAMP
C. SQL_VARIANT
D. UNIQUEIDENTIFIER
A. All of these
B. SMALLDATETIMEFROMPARTS
C. DATEFROMPARTS
D. TIMEFROMPARTS
E. SMALLDATETIME2FROMPARTS
A. SERIALIZABLE
B. READ UNCOMMITED
C. READ COMMITED
D. SNAPSHOT
A. The same as RIGHT JOIN.
B. Combines multiple T-SQL statements into one.
C. The same as UNION ALL.
D. Evaluates the arguments in order and returns the current value of the first expression that initially does not evaluate to NULL.
E. The same as LEFT JOIN.
A. False
B. True
A. Query A will return both full result sets; Query B will return both result sets with duplicates removed.
B. Query A and B return the same result set.
C. Query A will return both result sets with duplicates removed; Query B will return both full result sets.
A. ALTER FUNCTION
B. DROP FUNCTION
C. All of these
D. CREATE FUNCTION
A. Serializable
B. Read Commited
C. Snapshot
D. Repeatable Read
A. nvarchar performs faster then varchar.
B. nvarchar supports unicode data.
C. varchar supports unicode data.
D. nvarchar supports large blob.
A. Redundancy
B. Offline Processing
C. Load Processing
D. All of these
A. True
B. False
A. They provide an extremely flexible method for importing and exporting data between a Microsoft SQL Server and other formats
B. They provide a window into the inner workings of the database
C. They are used to control the MSSQLServer, MSDTC, and SQLServerAgent processes
D. They are the main administrative console for SQL Server installations
A. LEFT INNER JOIN
B. LEFT OUTER JOIN
C. FULL OUTER JOIN
D. INNER JOIN
A. Backs up all the information in the SQL Server
B. Backs up only the information in the selected FileTable
C. None of these
D. Copy only the information that has changed since the last full backup
A. Executes the BULK INSERT statement
B. Creates and alters databases
C. Manages processes running in an instance of SQL Server
D. Manages server logins
A. Tests queries before implementing them in other applications
B. All of these
C. Creates/modifies stored procedures and execute administrative tasks
D. Quickly pulls information out of a database in response to a user request
A. True
B. False
A. Checks whether a table contains a reference to another table
B. Searches a file for records belonging to a table
C. Compares a specified value against a list of values and is true if a match is found
D. Used to specify which table to iterate over in a loop using T-SQL
A. 5022
B. 1433
C. 1434
D. 5023
A. Windows security
B. SQL Server security
C. Both Windows security and SQL Server security
A. TABLE scan
B. INDEX scan
A. A user interface component contained within the SQL Server Management Studio application
B. A special T-SQL construct used to iterate through the individual records returned by a query
C. A remote connection to another SQL Server
D. A collection of icons that can be applied to the mouse pointer on the screen
A. Set user accounts
B. Edit databases
C. Any action in SQL server
D. Change security settings