I am sorry for a beginner question, but I cannot go trough this.
I have SQL EXPRESS server installed, using .NET 3.5. I have
downloaded examples via svn at address "http://
hibernatingrhinos.googlecode.com/svn/trunk" and tried "FirstSolution"
example.
It works well, but it uses local db file. When I tried to change
connection string for to connect to SQL server,
I got error "Unknown connection option in connection string: server."
If I change connection string somehow, I get similar errors.
My hibernate.cfg.xml file:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</
property>
<property
name="connection.driver_class">NHibernate.Driver.SqlServerCeDriver</
property>
<property name="connection.connection_string">Server=.\SQLEXPRESS;
Initial Catalog=NHExample; Integrated Security=SSPI</property>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>
Various connection strings I tried:
"Server=(local)\SQLEXPRESS; Initial Catalog=NHExample; Integrated
Security=SSPI"
"Server=127.0.0.1\SQLEXPRESS; Initial Catalog=NHExample; Integrated
Security=SSPI"
etc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---