Pre-requirements: .NetFramework 3.0 and above,Windows Installer 4.5 and above,Windows Power Shell.
Installing SQL Server Express 2008 with Management Tools
1)Download SQL Server 2008 Express with Tools or SQL Server 2008 Express Advanced Series
2)Run the SQLEXPRADV_x86_ENU.exe
3)In the "SQL Server Installation Center" one can Click on System Configurator Checker to see if all the pre requisites are installed.
4)Choose Installtion option and select "New SQL Server stand-alone installation or add features to an existing installation"
5)The product key setting page appears.Click next
6)Click next on the Licence Terms page
7)Click Install in the Set up Support Files screen and once the setup is over,click next
8)In the features selection screen select
a)Database Engine Services
b)ManagementTools-Basic
9)During Instance configuration enter, "MSSQLSERVER" in the Named instance and Instance Id box.Click Next . To understand why we do this please refer to http://msdn.microsoft.com/en-us/library/ms165614.aspx
10)In the Server Configuration Page
a)Use "NT AUTHORITY\SYSTEM" as account name of SQL Server Database engine
b)Change SQL Server Browser startup to Automatic.Other setting remain same.
11)In the Data Base Engine Configuration screen
a)Select Mixed Node (so that the built in the admin user "sa" can be user for authorisation inaddition to windows authorisation)
b)Provide password for the account "sa".
c)Click next and wait for installation to finish
Starting MS SQL Server
1)Run MSSQL Server Configuration Manager
2)In "SQL Server Network Configuration->Protocols for SQL SERVER." Enable TCP/IP and Named Pipes(SQL server used port 1433 by default)
2)Right click on SQL Server Services->SQL Server and select start.
3)netstat -an|grep 1433 to check Mssql is running.
Setting up JDBC connection Pool
1)Download Microsoft SQL Server 2005 JDBC Driver 1.2 (driver for 2008 is not available now)(http://www.microsoft.com/downloads/details.aspx?FamilyID=c47053eb-3b64-4794-950d-81e1ec91c1ba&displaylang=en)
2)Copy the sqljdbc.jar to domains/domain1/ext/lib
3)Enter localhost:4848 and login as admin/adminadmin
4)Assuming websynergy is already running on glassfish,there would be
a)jdbc/LiferayPool and jdbc/JIRAPool under CommonTasks->Resources->JDBC->JDBC resources
b) LiferayPool and JIRAPool under CommonTasks->Resources->JDBC->Connection Pool
5)Create new connection pools LiferayPool2 and JIRAPool2
ResourceType:javax.sql.DataSource
DataSource Classname:com.microsoft.sqlserver.jdbc.SQLServerDataSource
Database Vendor:Microsoft SQL server
In the additional Properties specify the following
user : sa
password : <sa_account_password_given_during_installation>
databaseName : lportal
serverName : <name of the computer>
6)Map the jdbc/LiferayPool , jdbc/JIRAPool to LiferayPool2 and JIRAPool2 respectively.click save
7)In the connections pools,use ping to check if its successful.
Refer to blogs.sun.com/JagadishPrasath/entry/jdbc_connection_pool_templates_glassfish for additional information on connection pools with MS SQL
Connecting to MS SQL using Management Studio tool
1)Run SQL Server Management Studio
2)File->Connect Object Explorer
3)Use the below Setting
Server Type:Database Engine
Server Name:<name of the computer>
Authentication : SQL Server Authentication (To use SQL Server authentication we should have selected Mixed Mode(Windows authentication +SQL Server authentication) option during Installation
Login : sa
Password : MSSQL administrator password given during installation
4)Click connect
5)Select New Query in the Management Studio tool
6)Write create database lportal; and click execute.You should see "Query succesfully executed " message