Options

Prevent Statistics from being extracted to scripts folder

abjacsabjacs Posts: 11
Hi. I'm using SDK v7.0 to save a physical db as a scripts folder. The extraction executes fine, but the extracted create table statements contain create statistics statements. Is there some way I can prevent this from happening?

I have tried registering the physical database with Options.IgnoreStatistics, but, per the API documentation, it seems that the Options enumeration only applies to comparison/migration operations.

Thanks!

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Alex,

    Maybe the problem is simply that you need to remember to apply your options at both the comparewith method and BuildFromDifferences. If you do not add Options.IgnoreStatistics to BuildFromDifferences, then you are creating the script with the default options.
Sign In or Register to comment.