Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 90050 invoked from network); 31 Mar 2004 09:16:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Mar 2004 09:16:21 -0000 Received: (qmail 73084 invoked by uid 500); 31 Mar 2004 09:15:53 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 73070 invoked by uid 500); 31 Mar 2004 09:15:53 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 73042 invoked from network); 31 Mar 2004 09:15:52 -0000 Received: from unknown (HELO zwei.siemens.at) (193.81.246.12) by daedalus.apache.org with SMTP; 31 Mar 2004 09:15:52 -0000 Received: from bavc001a.bav.siemens.ro (pix6-pri.frust.net [193.81.246.198] (may be forged)) by zwei.siemens.at (8.12.9/8.12.8) with ESMTP id i2V9G3K0017968 for ; Wed, 31 Mar 2004 11:16:04 +0200 Received: from RO1CV02D ([163.242.239.126]) by bavc001a.bav.siemens.ro with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id H0HKK0XQ; Wed, 31 Mar 2004 12:15:35 +0300 From: "Alexandru Dovlecel" To: "'Apache Torque Users List'" Subject: MSSQL problems with reserved words Date: Wed, 31 Mar 2004 11:16:00 +0200 Message-ID: <001401c41700$c9518be0$7eeff2a3@ro1cv02d> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <406A7BBA.50007@numerixtechnology.de> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, Pls need help ASAP. I have a database that contains tables that are reserved words for mssql. E.g. one table is called SCHEMA. When I generate the code from my-schema.xml, it generates the my-schema.sql file. When running the sql file in the mssql I get an error: SCHEMA keyword not expected after CREATE TABLE (or something like this). I can do this by generating CREATE TABLE [SCHEMA]. But if I put the table name as "[SCHEMA]" then the primary key triggers are not correct (e.g. [SCHEMA]_PK is not a valid name). How can I overcome this problem? Does anyone have some patched mssql templates for generating the sql and the OM classes? Any suggestions? Pls help. Thanks alot, Alex --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org