﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » Change index fillfactor</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 28 Apr 2026 08:59:53 GMT</lastBuildDate><ttl>20</ttl><item><title>Change index fillfactor</title><link>http://forum.strataframe.net/FindPost27715.aspx</link><description>Hi&lt;br&gt;
I have PK defined to all tables via DDT and deployed to customer already. I found that I missed out index fillfactor. I tried to change the fillfactor and rebuild package to deploy to customer again. However, I hit error PK constaint must be drop first before able to change fillfactor. &lt;br&gt;
&lt;br&gt;
What should I do for this? Should I remove the PK, and create it again via DDT as workaround?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Thu, 09 Sep 2010 12:01:25 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost28284.aspx</link><description>Yeah, Jason... I was able to reproduce it over here. Will forward it to the guys. ;)</description><pubDate>Thu, 09 Sep 2010 12:01:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost28280.aspx</link><description>Sorry I haven't been following up, I am running SF 1.7.0.6.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;Steps to reproduce (after you have opened DDT and selected a project):&lt;br/&gt;&lt;br/&gt;&lt;ol&gt;&lt;li&gt;Open Table -&amp;gt; Indexes -&amp;gt; Edit Index (for primary key) and set the fill factor to a specific value, in my case 95, save and close&lt;/li&gt;&lt;li&gt;Modify the table structure, change column name, data type, anything, save and close&lt;/li&gt;&lt;li&gt;Reopen Table -&amp;gt; Indexes -&amp;gt; Edit Index and fill factor is now set back to zero.&amp;nbsp; Only affects the index for the primary key.&lt;/li&gt;&lt;/ol&gt;Regards,&lt;br/&gt;&lt;br/&gt;Jason</description><pubDate>Thu, 09 Sep 2010 10:55:47 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost28082.aspx</link><description>Jason,&lt;br&gt;
&lt;br&gt;
I am trying to reproduce this and can't.  What are the steps to reproduce?  What version of StrataFrame do you have installed?</description><pubDate>Tue, 24 Aug 2010 16:08:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost28081.aspx</link><description>Jason, the developers are looking into this. I'll get back to you (or they will) once we've had a look at it.</description><pubDate>Tue, 24 Aug 2010 16:06:33 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost28074.aspx</link><description>Still having to deal with this.&lt;/P&gt;&lt;P&gt;I am frustrated because the DDT resets the index values back to zero everytime you modify the table structure.&amp;nbsp; I don't know why and it is a real pain to either reset all the indexes back to whatever I want them to be after &lt;EM&gt;&lt;U&gt;every&lt;/U&gt;&lt;/EM&gt; time I open a table structure and then hit save.&amp;nbsp; So usually I just ignore them and skip past the errors on the deployment log, which is also a pain since you can't copy and paste or otherwise save the DDT deployment log.&lt;/P&gt;&lt;P&gt;Requested solutions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do not modify the fillfactor percentage when doing table structure saves (In the DDT editor).&lt;/LI&gt;&lt;LI&gt;Set a default fillfactor index as a database property and have it automatically apply to all indexes (In the DDT editor).&lt;/LI&gt;&lt;LI&gt;Allow copy/paste of deployment log, or not make the form modal so I can view it and still make changes to the DDT, without having to find the text deployment log and then find where I was at.&lt;/LI&gt;&lt;LI&gt;Just not modify the fillfactor on deployment for exisiting indexes.&amp;nbsp; I don't know if this is possible or if fillfactor is a required paramater, unless you are creating a new index&amp;nbsp;just leave it alone for existing indexes.&lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Tue, 24 Aug 2010 10:47:21 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost27754.aspx</link><description>I ran into this on some of our databases because the DDT was setup (by default) to set the FillFactor to 0, which tells MSSQL to use whatever the default fillfactor value is.&amp;nbsp; The problem can occur when a DBA has a script that runs that drops and rebuilds or re-organizes indexes and sets a new fillfactor value different than the default.&amp;nbsp; I had to do this on some of our larger indexes becuase the index files were getting extraneously large and filled with large amounts of blank space.&amp;nbsp; Then the DDT wouldn't work until you changed the FillFactor in the DDT to the exact same percentage as the index already in the database.&amp;nbsp; I was able to fix by just changing to make the numbers match, but if you aren't in control or even know what the end server is set to the above mentioned solution would probably work better.&amp;nbsp; But you may bear in mind that another DBA maybe upset to have their indexes reset/rebuilt to a different value for optimization reasons.&lt;/P&gt;&lt;P&gt;Jason</description><pubDate>Tue, 27 Jul 2010 14:45:24 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Change index fillfactor</title><link>http://forum.strataframe.net/FindPost27718.aspx</link><description>Hi ChanKK,&lt;br&gt;
I believe you will need to create a Pre-Post Deploy Script to take care of that situation.  Keep in mind that you can use the Priority field to control which script or functionality to run first.  You can create the scripts to drop the PK constraint in SQL Server Management Studio (SMS) then copy them to the DDT Pre-Deploy script.&lt;br&gt;
&lt;br&gt;
Here is a sample of what I have in one of my DDT Post-Deploy Script:&lt;br&gt;
[codesnippet]&lt;br&gt;
/****** Object:  Index [DuplicateImportCheck_idx]    Script Date: 04/07/2010 09:50:41 ******/&lt;br&gt;
IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[TransactionItemsImport]') AND name = N'DuplicateImportCheck_idx')&lt;br&gt;
DROP INDEX [DuplicateImportCheck_idx] ON [dbo].[TransactionItemsImport] WITH ( ONLINE = OFF )&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
[quote]PS&lt;br&gt;
When copying the script from the SMS do not use the command "GO" or "USE database" since it will give you an error in the DDT when trying to deploy your package.[/quote]</description><pubDate>Wed, 21 Jul 2010 23:19:18 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>