﻿<?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?)  » How to create index with Included columns</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:09:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to create index with Included columns</title><link>http://forum.strataframe.net/FindPost31319.aspx</link><description>Hi Trent,&lt;br/&gt;&lt;br/&gt;Will SF Team consider to add the feature of create index with INCLUDE columns to the DDT?&lt;br/&gt;&lt;br/&gt;I have been using the Post-Deploy script for this, but I have customers with 37GB database size and re-creating the indexes all the time in the post-script cause a long delay over 2 hours for some customers and I am under the impression that there is a logic in DDT that will only re-create an index, if it is needed to do so, is this assumption right?</description><pubDate>Sat, 28 Jul 2012 15:48:46 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>How to create index with Included columns</title><link>http://forum.strataframe.net/FindPost30348.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;is it possible to create an index with included columns using DDT?&amp;nbsp;I can create such index using management studio but I cannot see any possibility to create it with DDT. In case it is not possible - is there any workaround?&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;&lt;br/&gt;George</description><pubDate>Sat, 28 Jul 2012 15:48:46 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: How to create index with Included columns</title><link>http://forum.strataframe.net/FindPost30352.aspx</link><description>Hi Edhy,&lt;br/&gt;&lt;br/&gt;thank You for the tip. It is working for me. However - it would be really useful to include this functionality directly to DDT. &lt;br/&gt;&lt;br/&gt;Thank You&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Jiri Brazda&amp;nbsp;</description><pubDate>Thu, 15 Sep 2011 02:22:56 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: How to create index with Included columns</title><link>http://forum.strataframe.net/FindPost30351.aspx</link><description>Hi Jiri,&lt;br/&gt;&lt;br/&gt;That functionality is not included in the DDT.&amp;nbsp; What I am doing is creating a Post-Deploy Script with the TSQL code to add the indexes.&amp;nbsp; To get the code right, I create the index in Management Studio, then generate a script and copy the data to the DDT script, here is a sample of my script:&lt;br/&gt;&lt;span&gt;[code]&lt;br/&gt;/****** Object:&amp;nbsp; Index [DuplicateImportCheck_idx]&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;CREATE NONCLUSTERED INDEX [DuplicateImportCheck_idx] ON [dbo].[TransactionItemsImport] &lt;br/&gt;(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FK_Vendor_Carrier] ASC,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FK_Transaction] ASC,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ImportStatus] ASC&lt;br/&gt;)&lt;br/&gt;INCLUDE ( [FK_TransactionItems],&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; [FK_Items],&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; [CardLotNo],&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; [CardSerialNumber])&lt;br/&gt;WITH (PAD_INDEX&amp;nbsp; = OFF, STATISTICS_NORECOMPUTE&amp;nbsp; = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS&amp;nbsp; = ON, ALLOW_PAGE_LOCKS&amp;nbsp; = ON) ON [PRIMARY]&lt;br/&gt;[/code]&lt;/span&gt;&lt;br/&gt;If I remember correctly there is an enhancement request for this feature, but don't know if the SF team will add it.</description><pubDate>Wed, 14 Sep 2011 22:59:01 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>