Red Gate forums :: View topic - Prevent Statistics from being extracted to scripts folder
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Prevent Statistics from being extracted to scripts folder

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
abjacs



Joined: 19 Dec 2008
Posts: 6

PostPosted: Wed Feb 10, 2010 6:34 am    Post subject: Prevent Statistics from being extracted to scripts folder Reply with quote

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!
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6582

PostPosted: Thu Feb 11, 2010 2:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group