-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: SET ARITHABORT ON before insert on a table How?
PostPosted: Wed May 14, 2008 8:24 pm 
Newbie

Joined: Wed Sep 26, 2007 9:53 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3
SQL Server 2005


I want to execute and set database property SET ARITHABORT ON before
executing insert on a table.

I am trying this but does not work.
I want this property to be set for the scope of the transaction

Session session = HibernateSession.openSession(databaseType);

SQLQuery sqlQuery = session.createSQLQuery("SET ARITHABORT ON ");
int i = sqlQuery.executeUpdate();

session.save(myObject);

///////

I want to replicate this sequence in query Analyzer:

SET ARITHABORT ON
GO
insert into myObject(a,b,c) values (1,2,3)


Any suggestions.

Thanks,Malini

_________________
Thanks,
Malini


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2009 2:29 pm 
Newbie

Joined: Wed Jan 28, 2009 2:24 pm
Posts: 1
Hi Malini,

I am also having the smae problem now. Hopefully you fixed that problem. Please let me know the solution if you solved it.

Thanks
Venkat


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.