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: ConnectionString SQL Server 2008
PostPosted: Thu Dec 10, 2009 6:17 am 
Newbie

Joined: Mon Nov 02, 2009 9:52 am
Posts: 19
I've worked with SQL Server 2005 Express until now. Now i have installed SQL Server 2008.
What changes do I have to do to my connectionstring? I cannot find any good example for a SQL Server 2008 connectionstring.

Here is my connectionstring for SQL Server 2005 Express:
Server=localhost\SQLEXPRESS;initial catalog=NHibernate;User Id=%USERNAME%;Password=%PASSWORD%

For SQL Server 2008 I have tried the following. Also I've changed the dialect to MsSql2008Dialect:
Data Source=localhost\MSSQLSERVER;Initial Catalog=NHibernate;User Id=%USERNAME%;Password=%PASSWORD%

What am I doing wrong?


Top
 Profile  
 
 Post subject: Re: ConnectionString SQL Server 2008
PostPosted: Thu Dec 10, 2009 9:17 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
With a default installation of SQL server, you don't get a named instance. So your string probably has to be:

Data Source=localhost;Initial Catalog=NHibernate;User Id=%USERNAME%;Password=%PASSWORD%

_________________
--Wolfgang


Top
 Profile  
 
 Post subject: Re: ConnectionString SQL Server 2008
PostPosted: Thu Dec 10, 2009 9:33 am 
Newbie

Joined: Mon Nov 02, 2009 9:52 am
Posts: 19
Thank you Wolfgang,

As everytime you're absolutely right.


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.