Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 8988 invoked from network); 25 Apr 2010 17:52:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Apr 2010 17:52:14 -0000 Received: (qmail 69694 invoked by uid 500); 25 Apr 2010 17:52:14 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 69621 invoked by uid 500); 25 Apr 2010 17:52:14 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 69613 invoked by uid 99); 25 Apr 2010 17:52:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Apr 2010 17:52:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Apr 2010 17:52:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3PHpofv007327 for ; Sun, 25 Apr 2010 17:51:51 GMT Message-ID: <19514060.183701272217910802.JavaMail.jira@thor> Date: Sun, 25 Apr 2010 13:51:50 -0400 (EDT) From: "Tom Palmer (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-256) MS SQL Server: dropping a unique constraint must be done by an ALTER TABLE command In-Reply-To: <14895833.183661272217789250.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DDLUTILS-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Palmer updated DDLUTILS-256: -------------------------------- Attachment: mssqlserveruniqueconstraints.patch The attached patch alters the MSSqlBuilder so that the dropIndex method checks to see whether the index is unique and, if it is, issues an ALTER TABLE command to drop the constraint. If the index isn't unique then a DROP INDEX command will be issued. > MS SQL Server: dropping a unique constraint must be done by an ALTER TABLE command > ---------------------------------------------------------------------------------- > > Key: DDLUTILS-256 > URL: https://issues.apache.org/jira/browse/DDLUTILS-256 > Project: DdlUtils > Issue Type: Bug > Components: Core - SqlServer > Affects Versions: 1.1 > Reporter: Tom Palmer > Assignee: Thomas Dudziak > Attachments: mssqlserveruniqueconstraints.patch > > > Dropping a unique constraint must be performed by issuing an ALTER TABLE command: http://msdn.microsoft.com/en-us/library/ms177420.aspx. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.