﻿<?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?)  » Unique Index Problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:41:35 GMT</lastBuildDate><ttl>20</ttl><item><title>Unique Index Problem</title><link>http://forum.strataframe.net/FindPost14682.aspx</link><description>I have a number of unique indexes on my database.&amp;nbsp; When I import it into a DDT project, all the indexes imported as non-unique.&amp;nbsp; So I changed them all in DDT to be unique and then deployed the database.&amp;nbsp; Everything worked fine except 1 index got deployed as non-unique.&amp;nbsp; So I checked the DDT project and it&amp;nbsp;IS marked as unique.&amp;nbsp; So I unchecked and checked Unique just to make sure.&amp;nbsp; I redeployed the database and the progress&amp;nbsp;log said the index in question was successfully altered.&amp;nbsp; So I went into the SQL Server Management Studio and the index is still non-unique.&amp;nbsp; Checked the DDT project again and the index is flagged as UNIQUE.&amp;nbsp; Any idea why this index won't deploy as unique?&lt;/P&gt;&lt;P&gt;Thanks!!</description><pubDate>Thu, 06 Mar 2008 09:40:09 GMT</pubDate><dc:creator>fansanitis</dc:creator></item><item><title>RE: Unique Index Problem</title><link>http://forum.strataframe.net/FindPost14683.aspx</link><description>This type of thing is hard to diagnose over a post.&amp;nbsp; If you deploy to a fresh instance (i.e. create a new database or deploy to another SQL Server) and the index is created properly, then there is probably some pre-existing issue that the SMO is having an issue with.&amp;nbsp; The first thing that I would do is manually delete the index on the server, deploy, and if it is created correctly from that point forward then you are probably good to go.&amp;nbsp; Past that I don't have any "abundantly wise&amp;nbsp;advice" without actually getting into the very specifics and details in a reproducable state.</description><pubDate>Thu, 06 Mar 2008 09:40:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>