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.  [ 1 post ] 
Author Message
 Post subject: IDENTITY INSERT ON / OFF with NHibernate
PostPosted: Mon Oct 02, 2006 6:53 pm 
Beginner
Beginner

Joined: Mon Oct 02, 2006 6:46 pm
Posts: 32
NHibernate version:1.2.0Beta

Name and version of the database you are using: MSSQL 2000

I have a unique and crappy problem. I am using a MSSQL database with a table that has an identity column in it. I don't know why the column is an identity column because the way the field is used is to turn IDENTITY INSERT ON, insert our own calculated value, then turn IDENTITY INSERT OFF. The problem I have is I need to tell NHibernate to turn IDENTITY INSERT ON, then back OFF whenever I'm inserting a row into this table.

Can this be done?

Thanks


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

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.