Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 64959 invoked from network); 18 Oct 2006 18:46:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2006 18:46:48 -0000 Received: (qmail 84907 invoked by uid 500); 18 Oct 2006 18:46:46 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 84887 invoked by uid 500); 18 Oct 2006 18:46:45 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 84870 invoked by uid 99); 18 Oct 2006 18:46:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 11:46:45 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.207.251] (HELO web32707.mail.mud.yahoo.com) (68.142.207.251) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Oct 2006 11:46:42 -0700 Received: (qmail 8555 invoked by uid 60001); 18 Oct 2006 18:46:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=320SOV9En4n93S4W5AE12gVy17NkENKuCaVMcyu4GihJ14snWNxMRJL7+PDu5VTt++HuP9bb9JL0yUBRjO4io76wKoJZh7Tp46y0PQBm8zJ0GTbhN8xxFhvg6GseXBYWaN8KppASzkAyvLA4OVgEQYSR1cYmSQq/FQ35daI6do8= ; Message-ID: <20061018184618.8553.qmail@web32707.mail.mud.yahoo.com> Received: from [64.221.102.130] by web32707.mail.mud.yahoo.com via HTTP; Wed, 18 Oct 2006 11:46:18 PDT Date: Wed, 18 Oct 2006 11:46:18 -0700 (PDT) From: Joseph Amaya Subject: Re: MSSQL Insert Problem To: torque-user@db.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, 1. My procedure is to run the jdbc Ant task 2. Then I change my schema to autoIncrement="true" for my Identity table, it already has primayKey="true" 3. Then I run the default task for build-torque 4. I don't set my identity column in my program, but when I attempt to save I get the TorqueException "Cannot insert explicit value for identity column in table 'CONTACTS' when IDENTITY_INSERT is set to OFF." Andaras Says: I have used torque with mssql successfully. What is not clear to me why you want to insert in the identity column. Did you declare the column in the schema as primaryKey="true" autoIncrement="true" ? If yes than Torque should do the insert into your CONTACTS table correctly and even read the new value of the column after insert. Best regards, Andras. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org