adplus-dvertising
frame-decoration

Question

Which of the following query returns object names from partition IDs?

a.

SELECT OBJECT_NAME(p.object_id) AS TableName ,
i.name AS IndexName
FROM sys.partition AS p
INNER JOIN sys.indexes AS i ON p.object_id = i.object_id
AND p.index_id = i.index_id
WHERE partition_id = 72057594038845440

b.

SELECT OBJECT_NAME(p.object_id) AS TableName ,
i.name AS IndexName
FROM sys.partitions AS p
INNER JOIN sys.indexes AS i ON p.object_id = i.object_id
AND p.index_id = i.index_id
WHERE partition_id = 72057594038845440

c.

SELECT OBJECT_NAME(p.object_id) AS TableName ,
i.name AS IndexName
FROM sys.partitions AS p
INNER JOIN sys.index AS i ON p.object_id = i.object_id
AND p.index_id = i.index_id
WHERE partition_id = 72057594038845440

d.

None of the mentioned

Posted under SQL Server

Answer: (b).SELECT OBJECT_NAME(p.object_id) AS TableName ,
i.name AS IndexName
FROM sys.partitions AS p
INNER JOIN sys.indexes AS i ON p.object_id = i.object_id
AND p.index_id = i.index_id
WHERE partition_id = 72057594038845440

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following query returns object names from partition IDs?

Similar Questions

Discover Related MCQs

Q. Which of the following best practice should be carried out concerning data types?

Q. The transaction log supports which of the following operations?

Q. Point out the correct statement.

Q. Which of the log_reuse_wait_desc value has log_reuse_wait value 0?

Q. ACTIVE_TRANSACTION has log_reuse_wait value is _________

Q. Point out the wrong statement.

Q. ________ logging is not supported for memory-optimized tables.

Q. Index page deallocation during a ________ operation is always fully logged.

Q. Which of the following checkpoint has ‘recovery interval’ less than zero?

Q. Internal checkpoint is generated in response to which of the following event?

Q. __________ backups are taken in bulk or full recovery models only.

Q. Which of the following compression type is supported by SQL Server 2014?

Q. Point out the correct statement.

Q. Use _________ data compression to compress columnstore data with archival compression.

Q. To remove archival compression and restore the data to columnstore compression _____________

Q. Point out the wrong statement.

Q. The data_compression and data_compression_desc columns include ___________

Q. Which of the following code is used to enable compression on a table?

Q. sp_estimate_data_compression_savings requires ______ permission on the table.

Q. Which of the following query estimates the size of the Production.WorkOrderRouting table if it is compressed by using ROW compression?