exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 1 question 33 discussion

Actual exam question from Microsoft's 70-464
Question #: 33
Topic #: 1
[All 70-464 Questions]

DRAG DROP -
You have a SQL Server 2012 database named DB1. DB1 contains four filegroups named FG1, FG2, FG3, and FG4. You execute the following code:

Two million rows are added to dbo.Sales.
You need to move the data from the first partition to a new table named SalesHistory and, starting on December 31, 2012, repartition dbo.Sales to support new sales data for three months.
Which code segment should you execute?
To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Note:
Box 1 "" Box 2:
✑ You need to move the data from the first partition to a new table named SalesHistory.
First create the new table, then move the contents of the first partition.

( Box 3 Box 4) Drop the partition scheme and then the partition function and the recreate them (box 5-box6). First recreate the partition function.
✑ You need, starting on December 31, 2012, repartition dbo.Sales to support new sales data for three months.
✑ A partition function can be dropped only if there are no partition schemes currently using the partition function. If there are partition schemes using the partition function, DROP PARTITION FUNCTION returns an error.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LiamLin
3 years, 9 months ago
I tried these: CREATE TABLE dbo.SalesHistory ( Date_key INT NOT NULL, Customer_key INT NOT NULL, Amount MONEY ) ON PS1(Date_key) GO ALTER TABLE Sales SWITCH PARTITION 1 TO dbo.SalesHistory PARTITION 1 GO ALTER PARTITION FUNCTION PF1() MERGE RANGE (20120331) GO ALTER PARTITION SCHEME PS1 NEXT USED [FG1] GO ALTER PARTITION FUNCTION PF1() SPLIT RANGE (20121231) GO
upvoted 1 times
...
Luzix
4 years, 7 months ago
If you tries to delete a partition scheme and it´s being used there is a error: The partition scheme "PS1" is currently being used to partition one or more tables.
upvoted 2 times
...
Luzix
4 years, 7 months ago
Do you need to DROP PARTITION SCHEME PS1?
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...