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.  [ 3 posts ] 
Author Message
 Post subject: Replicated database and ROWCOUNT problem
PostPosted: Fri Apr 06, 2007 4:58 am 
Newbie

Joined: Thu Dec 21, 2006 4:34 am
Posts: 13
Replication triggers are causing the rowcount to be greater than one and therefore causing NHibernate to throw an exception.

I've searched this forum to ascertain whether NHibernate can in fact be used against a replicated database but I found any leads to be inconclusive. The advise given on posts discussing rowcounts has been to add "SET NOCOUNT ON" in the offending triggers. However, what abount triggers that get added by sql server itself?

Has anyone experience in what it takes to configure NHibernate and / or SQL server 2005 replication to get around the rowcount problem? I really have very limited experience in replication, so I'm not sure whether its even possible to manually change the replication trigger to add the necessary NOCOUNT statement.

Thanks
Christian


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 5:17 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Yeah, this is a pain. The procs added by SQL server for replication can be edited by hand and you can add the NOCOUNT, but you'll have to be careful if you make future modifications to replication.

As far as I know that's the only solution open to you.

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 09, 2007 4:06 am 
Newbie

Joined: Thu Dec 21, 2006 4:34 am
Posts: 13
Hmm, that is a pain. I've posted to sqlservercentral.com forums to see whether anyone else knows of a better way.

Thanks
Christian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.