Prepare statement in MS SQL 2005 probably not correct

eggwise's picture
Hi, We use stored procedures in our data services to insert and update records in a MS SQL 2005 database. Initially it didn't work. No updates ore inserts were made. Then we noticed the statements were rolledback at the end of the prepared statements. Now we add: if @@trancount > 0 commit tran at the end of our sp's and all works as to be expected. We suggest the statements from the stored procedures (and plain SQL) aren't prepared correctly. Thanks, Jan-Bart
sumedha's picture

Hi,By default auto commit

Hi, By default auto commit property is set to false. You can make it to true by adding following property into <config> section of your data service. <property name="org.wso2.ws.dataservice.autocommit">true</property> /sumedha
rvverner7.gmail.com's picture

Thanks for your useful info,

Thanks for your useful info, I think it's a good topic Russell blog
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)