Use this datatype when you want to be able to store any kind of data, regardless of type.
sql_variant
The two recovery models that allow (and require) regular log backups.
Full and Bulk Logged
The query below never returns any rows. How can you fix it?
SELECT *
FROM Sales.SalesOrderHeader
WHERE CurrencyRateID = NULL
Replace the = with IS
WHERE CurrencyRateID IS NULL
This object is defined as “a column or combination of columns that contain values that uniquely identify each row in the table"
Primary Key
A high signal wait percentage indicates a bottle neck on this resource.
CPU
This datatype will hold geometric shapes based on a round-earth coordinate system.
Geography
You’ve created a new database using the full recovery model. What must you do before you take your first log backup?
Create a full backup
Which of the following is the proper way to send a custom error back to the client?
A. RAISERROR ('I am afraid I can''t do that Dave.', 16, 1)
The object highlighted in the script below:
WITH SalesData AS (
SELECT SalesOrderHeader.SalesOrderID
, COUNT(*) AS OrderItemCount
FROM Sales.SalesOrderHeader
INNER JOIN Sales.SalesOrderDetail
ON SalesOrderHeader.SalesOrderID = SalesOrderDetail.SalesOrderID
GROUP BY SalesOrderHeader.SalesOrderID
)
SELECT *
FROM SalesData
CTE
This counter measures the estimated number of seconds a data page will stay in memory before being flushed back to disk.
Page Life Expectancy (PLE)
As of December 5, 2018, the national debt was approximately $21,829,887,333,499 (21 trillion dollars). Name two datatypes that can accurately and precisely store this value.
Money, Bigint, or Numeric/Decimal
This type of backup captures any changes since the last full backup.
Differential backup
Given the Patient Table outlined in figure 1, which of the following insert will succeed (choose all that apply)?
C:
INSERT INTO #Patient (PatientID, Fname, Lname, Age, BD)
VALUES (1, NULL, 'Crawford', 37, '8/23/1974')
Although this object is defined by Books Online as “A virtual table whose contents are defined by a query…. [this object] does not exist as a stored set of data values in a database.”, it can be indexed.
View
This wait type indicates parallelism is being used.
CXPacket
In the query below, what datatype is @Node?
SELECT @Node.GetAncestor(2)
HierarchyID
The database log file is divided into multiple smaller chucks or sub-components called:
Virtual Log Files (VLFs)
Errors at this severity or above will not only terminate the batch, it will also disconnect the client’s session to SQL Server.
20
This object “is a user-defined schema-bound object that generates a sequence of numeric values according to the specification with which the [object] was created…. Unlike identity columns, [these objects] are not associated with tables.
Sequence
The Dynamic Management Function that returns information about index fragmentation.
sys.dm_db_index_physical_stats
Daily Double!
In the query below, what datatype is @OutputVariable?
SELECT @OutputVariable = SWITCHOFFSET(@Variable1, @Variable2)
The process that occurs when the SQL Server Service starts. During this time, committed but unwritten transactions are rolled forward and uncommitted written transactions are rolled back.
Recovery
Assuming the table and column names exist, which of the following queries will throw an error?
D:
SELECT *
FROM Employee
CROSS JOIN PurchaseOrderHeader ON Employee.BusinessEntityID = PurchaseOrderHeader.EmployeeID
This object is the only one with access to the EVENTDATA() function
DDL Trigger
The RESOURCE_SEMAPHORE_QUERY_COMPILE wait type indicates a bottleneck on this resource.
Memory