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: Change port for conecting to MSSQL server
PostPosted: Mon Sep 08, 2008 4:43 am 
Newbie

Joined: Mon Sep 08, 2008 3:53 am
Posts: 4
I need to change the port that nhibernate uses to connect to my MSSQL server. I've been looking in the documentation but I can't see any way to change it, I can see that it is possible for DB2 UDB.

I've tried to add port to my connection string, but get the error "Keyword not supported: 'port'"

Is there a solution to my problem?

http://www.hibernate.org/361.html Supported databases by nHibernate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2008 11:58 am 
Newbie

Joined: Tue Sep 09, 2008 11:06 am
Posts: 6
Location: Illinois, USA
You could try this in your connection string replacing 1433 with whatever port you actually want to use:
Server=(local),1433;Initial Catalog=dbname;User Id=user;Password=********


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 10, 2008 1:50 am 
Newbie

Joined: Mon Sep 08, 2008 3:53 am
Posts: 4
That worked like a charm! Thank you


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.