Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 34314 invoked from network); 30 Jul 2006 03:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2006 03:00:30 -0000 Received: (qmail 37641 invoked by uid 500); 30 Jul 2006 03:00:30 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 37617 invoked by uid 500); 30 Jul 2006 03:00:29 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 37608 invoked by uid 99); 30 Jul 2006 03:00:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jul 2006 20:00:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jul 2006 20:00:28 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1G71XE-0004Cr-D2 for activemq-users@geronimo.apache.org; Sat, 29 Jul 2006 20:00:08 -0700 Message-ID: <5560296.post@talk.nabble.com> Date: Sat, 29 Jul 2006 20:00:08 -0700 (PDT) From: jcarreira To: activemq-users@geronimo.apache.org Subject: ActiveMQ JDBC Persistence with SQL Server MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: jcarreira@gmail.com X-Nabble-From: jcarreira X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm trying to get ActiveMQ working with SQL Server 2000 as the JDBC PersistanceAdapter, and I'm running into this error: 2006-07-29 21:30:32,887 [main] ERROR org.apache.activemq.store.jdbc.DefaultDatabaseLocker - Failed to acquire lock: com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR. com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source) at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.getPrepExecResponse(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PreparedStatementExecutionRequest.executeStatement(Unknown Source) at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(Unknown Source) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:911) at org.apache.activemq.store.jdbc.DefaultDatabaseLocker.start(DefaultDatabaseLocker.java:56) at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:172) at org.apache.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:216) at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1006) at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:964) at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:460) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:363) I've gotten this exact same error with both jTDS 1.2 and Microsoft's JDBC Driver version 1.1.1320.0. Here's my activemq.xml: My DataSource is a c3p0 datasource set up like this: ... Anyone have any ideas? Thanks, Jason -- View this message in context: http://www.nabble.com/ActiveMQ-JDBC-Persistence-with-SQL-Server-tf2022248.html#a5560296 Sent from the ActiveMQ - User forum at Nabble.com.