Creating and initializing a Microsoft SQL Server database
Before you begin
- The database server software must be installed and configured.
- Ensure that the database is for the exclusive use of the TrueSight Middleware and Transaction Monitor (TMTM) product.
- You must have created a SQL Server login and user for use by TMTM.
A Microsoft SQL Server database cannot be paired with a Linux service set.
- The TMTM server must be in close physical proximity to the database server with a network latency of less than 5ms between them (100 Mb LAN). A gigabit LAN is recommended.
- Database clients must be appropriate to the TMTM installation and to the database server. TMTM services are 64-bit applications on Windows and Linux (SLES, RHEL). It is recommended that the database client version match the database server version.
To create and initialize a Microsoft SQL Server database
- Install the database client software on all computers that need access to the database.
- Run mssql.create.sql and mssql.init.sql using the command line as the database owner.
The database objects should be created by a database owner and thus qualified with dbo.
sqlcmd –I -S DBServerName -d Database -i mssql.create.sql -o mssql.create.log
sqlcmd –I -S DBServerName -d Database -i mssql.init.sql -o mssql.init.log - Include the following database security settings for the TMTM database user:
- db_writer role
- db_reader role
- db_ddladmin role
- execute permissions for all stored procedures with the PRC_ prefix and all stored functions with the FN_ prefix.
To have the TMTM services connect successfully, create a 64-bit ODBC connection to the TMTM database. The 64-bit ODBC configuration tool (ODBC Driver Manager) can be started with %SystemRoot%\system32\odbcad32.exe from the command prompt, or using the GUI (Control Panel>Administrative Tools>ODBC Data Sources (64-bit)).
- When the scripts are complete, ensure that your entire database network is functioning and all of the clients can access and write to the server.
Where to go from here
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*