====== Configuring MS SQL ======
----
===== Script to Create the Database =====
----
\\
CREATE DATABASE [wp_manager]
GO
USE [master]
GO
CREATE LOGIN [wpweb] WITH PASSWORD=N'Password-123', DEFAULT_DATABASE=[wp_manager], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON
GO
USE [wp_manager]
GO
CREATE USER [wpweb] FOR LOGIN [wpweb]
GO
USE [wp_manager]
GO
EXEC sp_addrolemember N'db_owner', N'wpweb'
GO
ALTER DATABASE wp_manager SET READ_COMMITTED_SNAPSHOT ON
GO
===== The Hibernate.cfg.xml File =====
----
The database configuration file is located in "C:\inetpub\wwwroot\XcaliburW\bin". Open it with a text editor, and edit the following lines:
[...here...]
=== Set Up MS SQL ===
----
Edit the following lines:
NHibernate.Driver.SqlClientDriver
For Microsoft SQL Server 2005:
NHibernate.Dialect.MsSql2005Dialect
For Microsoft SQL Server 2008:
NHibernate.Dialect.MsSql2008Dialect
For Microsoft SQL Server 2012:
NHibernate.Dialect.MsSql2008Dialect
=== Connection String ===
----
The setup will be different depending on the authentication mode used.
== Connection in SQL Authentication Mode ==
----
Edit the following line:
Data Source=127.0.0.1\SQLEXPRESS;Initial Catalog=wp_manager;User ID=wpweb;Pwd=password;Trusted_Connection=False;Network Library=DBMSSOCN;Persist Security Info=False;
the value "password"refers to the password you chose when you created the wpweb account
== Connection in Windows Authentication Mode ==
----
Replace the line:
Data Source=127.0.0.1\SQLEXPRESS;Initial Catalog=wp_manager;User ID=wpweb;Pwd=password;Trusted_Connection=False;Network Library=DBMSSOCN;Persist Security Info=False;
with:
Data Source=127.0.0.1\SQLEXPRESS;Initial Catalog=wp_manager;Integrated Security=SSPI;