Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 64892 invoked from network); 2 Sep 2009 13:32:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 13:32:07 -0000 Received: (qmail 44892 invoked by uid 500); 2 Sep 2009 13:32:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 44858 invoked by uid 500); 2 Sep 2009 13:32:06 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 44850 invoked by uid 99); 2 Sep 2009 13:32:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 13:32:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [173.15.87.35] (HELO dbrack01.segel.com) (173.15.87.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 13:31:57 +0000 Received: from Desktop02 (173-15-87-33-Illinois.hfc.comcastbusiness.net [173.15.87.33]) by dbrack01.segel.com (Postfix - We shoot spammers on site.) with ESMTP id 676C05DFFB for ; Wed, 2 Sep 2009 08:38:57 -0500 (CDT) Reply-To: From: Sender: "Michael Segel" To: "'Derby Discussion'" Subject: RE: Read only connection? Date: Wed, 2 Sep 2009 08:31:34 -0500 Organization: MSCC MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acor0DvSBk7kbKAbRi6z5WsemkzUfAAATCcQ In-Reply-To: <04df01ca2bd0$3f01b970$bd052c50$@com> Message-Id: <20090902133857.676C05DFFB@dbrack01.segel.com> X-Virus-Checked: Checked by ClamAV on apache.org What are your privileges? Depending on the database, you can grant users different permissions on connection, table (insert update delete), the ability to execute dll (alter database statements) etc ... So I'd check your permissions that are granted to the user. HTH > -----Original Message----- > From: Mike Baranski [mailto:list-subscriptions@secmgmt.com] > Sent: Wednesday, September 02, 2009 8:21 AM > To: derby-user@db.apache.org > Subject: Read only connection? > > I have an embedded derby DB, and when I connect and try to insert, I get: > > Exception: An SQL data change is not permitted for a read-only connection, > user or database. > > This is the only thing connected to it, and is the same version (the same > exact files, actually) of the jars that were used to create it. The > connection string is: > > String connectionURL = "jdbc:derby:/path/to/db/;create=false;"; > > I can read data all day long. Same thing happens with the IJ tool. > > Can someone help? > > Thanks, > Mike. >