What is the result?

You are a database developer on an instance of SQL Server 2008. You have two partitioned tables with identical structures, named Trx and Trx_Hy. They were both partitioned on the same column using the following partition function and partition scheme:
CREATE PARTITION FUNCTION Pf1 (int)
AS RANGE LEFT FOR VALUES (10000, 30000, 50000);
CREATE PARTITION SCHEME Ps1 AS PARTITION Pf1 TO (fg1, fg2, fg3, fg4);
Both tables contain data. You issue the following statement to move a partition from the Trx table to the Trx_Hy table:
ALTER TABLE Trx SWITCH PARTITION 1 TO Trx_Hy PARTITION 4;
What is the result?
A. The statement fails if partition 4 of Trx_Hy contains data.
B. The statement succeeds if partition 1 of Trx and partition 4 of Trx_Hy both contain data.
C. The statement fails because the two tables use the same partition function.
D. The statement fails if either of the specified partitions is empty.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.