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: Mapping DB Users to NHibernate (SQL Server 2005)
PostPosted: Tue Oct 13, 2009 5:12 am 
Beginner
Beginner

Joined: Thu Sep 17, 2009 8:53 am
Posts: 20
Hello!

I'm using NHibernate along with a MS SQL Server 2005 database.

I am now trying to map the users registered for that db, as I stored some application relevant settings for each specific user in some tables, which I want to be able to read for the current application's user.

I however have some trouble getting started with that. After doing some research (scratching only the surface of the problem), I mapped sys.database_principals.

My questions are:
Is this the correct thing to map for my intentions?
Is the field "principal_id" the correct choice for my primary key?

I am sorry, should a question this specific to SQL Server belong somewhere else!

Cheers
Benjamin


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.