Creating SQL Server databases manually
Create Microsoft™ SQL Server databases with SQL scripts instead of using the HCL Connections database wizard.
Before you begin
Follow this procedure if you do not want to use the database wizard to create your databases.
The SQL scripts are located in a compressed file, located in the HCL_Connections_Install\HCLConnections\native\connections.sql.zip\connections.sql directory of the HCL Connections setup directory or installation media. Extract this file before proceeding. When extracted, the SQL scripts are located in the HCL_Connections_Install/HCLConnections/native/connections.sql/application_subdirectory directory of the HCL Connections set-up directory or installation media, where application_subdirectory is the directory that contains the SQL scripts for each application.
If the database server and HCL Connections are installed on different systems, copy the SQL scripts to the system that hosts the database server.
Before beginning the task, decide whether to use SQL Server with or without an instance name, and with or without an A-Record Alias.
- The name of the server is ServerA.
- You configured the default instance when setting up SQL Server.
- Use only the server name.
- ServerB is the name of the server
- You configured the instancename as Connections when setting up SQL Server.
- Use the ServerB\Connections naming format.
- ServerC is the name of the server
- You configured the default instance when setting up SQL Server.
- You created an A-Record to use as an alias for a new SQL Server called ServerC.
- Use the name of the new A-Record. For example, use A-Record-Name\sqlserver_server_instance_name>
About this task
This task describes how to use SQL scripts to create SQL Server databases for HCL Connections applications.
Download the Microsoft JDBC Driver 4.0 for SQL Server driver from the Microsoft™ web site and follow the instructions to extract the driver files. HCL Connections uses the sqljdbc4.jar file.
>> \file_path\db_application.log
where file_path is the full path to the log file and application is the name of the log file.
For example:
sqlcmd >> \home\admin_user\lc_logs\db_activities.log
where sqlcmd is a command with parameters and admin_user is the logged-in user. Ensure that you have write permissions for the directories and log files.
Procedure
- Configure SQL Server account mode and Windows™ Authentication mode:
- Create a SQL Server Account such as lcuser.
- Apply sysadmin permissions.
- Configure Local Account Mode:
- Create a local account, such as lcuser, on the system that is hosting SQL Server.
- Add the local account to SQL Server with sysadmin permissions.
- Add the local account to the Local Administrators group.
Note: You must specify these credentials later as parameters of the U and P flags for the sqlcmd command. - Create a directory on the SQL Server system where you can
store the application databases.
Later on, you need to specify these directories as parameters of the file path flag for the sqlcmd command.
- Create a SQL Server user ID with system database administrator
privileges that you can use to manage the database tables or use an
existing ID that has administrative privileges, such as
sa
.You will specify these credentials as parameters of the
U
andP
flags for the sqlcmd command later. - Perform the following steps once per application to create
each database:
- (Home page only) Perform the following steps for the Home
page application:
- (Communities only) Run the following commands:
sqlcmd -U admin_user -P admin_password -i calendar-createDb.sql
sqlcmd -U admin_user -P admin_password -i calendar-appGrants.sql
- Perform the following steps to grant access privileges
for the applications: