From ddlutils-dev-return-151-apmail-db-ddlutils-dev-archive=db.apache.org@db.apache.org Fri Sep 30 16:46:10 2005 Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 51728 invoked from network); 30 Sep 2005 16:46:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2005 16:46:10 -0000 Received: (qmail 87135 invoked by uid 500); 30 Sep 2005 16:46:10 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 87111 invoked by uid 500); 30 Sep 2005 16:46:10 -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 87100 invoked by uid 99); 30 Sep 2005 16:46:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 09:46:08 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id BB41BDF for ; Fri, 30 Sep 2005 18:45:47 +0200 (CEST) Message-ID: <598489741.1128098747733.JavaMail.jira@ajax.apache.org> Date: Fri, 30 Sep 2005 18:45:47 +0200 (CEST) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (DDLUTILS-21) Sql Server drop statements fail without delimited identifiers In-Reply-To: <1889462271.1128084767530.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-21?page=comments#action_12330978 ] Thomas Dudziak commented on DDLUTILS-21: ---------------------------------------- I think what matters is whether the database has quoted_identifier = ON or not: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_set-set_9jxu.asp Could you perhaps create a database with quoted_identifier = OFF - or perhaps it suffices to use SET quoted_identifier=OFF CREATE TABLE tableName ... and then check the sysobjects table ? > Sql Server drop statements fail without delimited identifiers > ------------------------------------------------------------- > > Key: DDLUTILS-21 > URL: http://issues.apache.org/jira/browse/DDLUTILS-21 > Project: DdlUtils > Type: Bug > Reporter: Richard Bounds > Assignee: Thomas Dudziak > Attachments: patch.txt > > The drop statements that are generated for sql server are prefixed by: > IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'tablename') > Without a delimeter being specified the statement changes to: > IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = tablename) > ...which fails (note the lack of quotes around tablename). -- 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