3

We use SSDT in VS 2015 to manage our database project code. Recently, we've been implementing partitioning on some tables in databases that are managed with SSDT.

I need to include the partition function and partition scheme definition in my project if I want to declare a dependency on that scheme in my table definitions. I'd prefer to ignore changes to the scheme and function so we can manage that outside of the project.

The problem I am having is that SSDT's publish profile appears to not be honoring my partition scheme exclusion settings even though they appear to be set correctly.

When I go to Advanced options in the publish profile settings and click on the Ignore tab, I have "Ignore partition schemes" and "Ignore table options" checked in the top box as well as "Exclude partition schemes" and "Exclude partition functions" checked in the bottom box.

Unchecking the option for partition functions appears to be behaving properly. When checked, the function disappears from the generated deployment script. However, regardless of which options I check and uncheck in regards to the partition scheme the partition scheme still appears in the publish script.

This is a screenshot of my settings: screenshot

I recently upgraded from SSDT v14.0.61707.300 to v14.0.61712.050 but the behavior still exists (the latest release 17.4 on the MS site) https://learn.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt

Can anyone explain what I'm doing wrong or is this a confirmed bug?

Is the partition scheme forced to exist in the publish script under certain circumstances that my project may be affected by?

I'd rather not have to completely remove all partitioning definitions from the project in order to work around this single issue as it will obscure the definitions.

aduguid
2811 gold badge4 silver badges16 bronze badges
asked Dec 22, 2017 at 20:32
4
  • Does the object already exist in your SSDT project? Commented Dec 22, 2017 at 21:25
  • @AnthonyGenovese yes it does Commented Dec 27, 2017 at 16:23
  • maybe try deleting the object in the project. Saving the solution, then seeing what happens? Commented Dec 27, 2017 at 20:53
  • Maybe this post contains relevant information? I'm attempting to do something similar. Commented Oct 23, 2018 at 21:00

1 Answer 1

-1

When performing a deploy where partition changes are occurring in a way that negatively impacts the performance, it is recommended to use the publish property "/p:IgnoreTablePartitionOption". With this option, table partition changes are not included in the deployment.

answered May 24, 2023 at 8:07
1
  • It sounds like chatgpt, which is not always right. Do you have a reference for this Commented May 24, 2023 at 9:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.