Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 99042 invoked from network); 13 Jul 2006 07:39:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 07:39:35 -0000 Received: (qmail 3208 invoked by uid 500); 13 Jul 2006 07:39:35 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 3187 invoked by uid 500); 13 Jul 2006 07:39:35 -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 3176 invoked by uid 99); 13 Jul 2006 07:39:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 00:39:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 00:39:34 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6885D410509 for ; Thu, 13 Jul 2006 07:37:35 +0000 (GMT) Message-ID: <7965868.1152776255425.JavaMail.jira@brutus> Date: Thu, 13 Jul 2006 07:37:35 +0000 (GMT+00:00) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-52) MS-SQL errors with "DEFAULT"s in Alter Statements In-Reply-To: <2015923968.1132963796435.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DDLUTILS-52?page=all ] Thomas Dudziak updated DDLUTILS-52: ----------------------------------- Component: Core - SqlServer > MS-SQL errors with "DEFAULT"s in Alter Statements > ------------------------------------------------- > > Key: DDLUTILS-52 > URL: http://issues.apache.org/jira/browse/DDLUTILS-52 > Project: DdlUtils > Type: Bug > Components: Core - SqlServer > Environment: WinXP, Sql Server 2000, Java 1.4.2 > Reporter: Colin Ritchie > Assignee: Thomas Dudziak > Fix For: 1.0 > > When the using the ant task writeSchemaToDatabase with SQL Server 2000 to a database already created, the columns with the default attribute report an error: > [ddlToDatabase] SQL Command ALTER TABLE "oci_switch" > [ddlToDatabase] ALTER COLUMN "schd_status" SMALLINT DEFAULT '0' NOT NULL failed with [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Incorrect syntax near the keyword 'DEFAULT'. > Schema: > > >
> I believe in MS SQL, you cannot include a DEFAULT in an ALTER COLUMN. It is a seperate statement. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira