exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 133 discussion

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

DRAG DROP -
You use SQL Server 2014 Enterprise Edition.
Your database contains a partitioned table named AuditData. AuditData is partitioned by year. Partition 1 contains data from the year 2010 and prior.
Management has decided to archive all AUDITDATA records from 2010 and prior.
Management wants the records to be removed from the database entirely and provided to the backup team as a zipped text file. The data must no longer reside in the database.
There is very little tolerance for performance degradation in your environment. You need to remove all 2010 and prior data from the AuditData table by using the least amount of system resources possible. Develop the solution by selecting and arranging the required SQL actions in the correct order.
You may not need all of the actions.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Note:
- Create a new partitioned table with the partition function you want, and then insert the data from the old table into the new table by using an INSERT
INTO...SELECT FROM statement.
- SPLIT RANGE ( boundary_value )
Adds one partition to the partition function. boundary_value determines the range of the new partition, and must differ from the existing boundary ranges of the partition function. Based on boundary_value, the Database Engine splits one of the existing ranges into two.
Of these two, the one where the new boundary_value resides is considered the new partition.
- BCP can be used top produce the zipped text file.
- Example: plitting a partition of a partitioned table or index into two partitions
The following example creates a partition function to partition a table or index into four partitions.
ALTER PARTITION FUNCTION splits one of the partitions into two to create a total of five partitions.
CREATE PARTITION FUNCTION myRangePF1 (int)
AS RANGE LEFT FOR VALUES ( 1, 100, 1000 );

GO -
-Split the partition between boundary_values 100 and 1000
-to create two partitions between boundary_values 100 and 500
--and between boundary_values 500 and 1000.
ALTER PARTITION FUNCTION myRangePF1 ()
SPLIT RANGE (500);

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
maxelx
Highly Voted 5 years, 4 months ago
The answer is completely wrong, split range would create a new partition when they ask for eliminate one of the partitions, so the correct would be create table switch the old partition to that table, bcp out the data, drop the table and then merge range to eliminate unwanted old partition
upvoted 6 times
Iva10
5 years ago
You are right, this is the order https://youtu.be/3c_VGh8FtZc?t=5813
upvoted 1 times
...
...
Anette
Highly Voted 4 years, 8 months ago
1. Create Table 2. Switch Partition 3. BCP 4. Drop the table and then 5. Merge Range
upvoted 5 times
...
norbert1
Most Recent 4 years, 9 months ago
ok, coud anyone give the right one..? the link is to a video quite "long/large"..
upvoted 1 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 ...