Microsoft SQL Server Setup
The following steps are required in order to use Database Monitors with a Microsoft SQL database. Cleo provides the MSSQL.zip in the utils directory of your Server installation folder. Within that file is MSSQLInstallers.zip, which can be used to execute the required setup of your database.
Important Security Settings
- Must be a member of the sysadmin fixed server role.
- Must have the database containing the stored procedure (and other components) set as default.
Procedure
- Extract MSSQLInstaller.zip on the machine where the database resides.
- Execute the correct batch file, based on three available options. There are three separate
scripts:
- Install_A.bat - This file runs the installation with the creation of an ASYMMETRIC KEY. This is the recommended method.
- Install_B.bat - This file runs the setup with the creation of the TRUSTWORTHY database property instead. Use of the TRUSTWORTHY database property may have other security implications outside the scope of this program. Before using this property, please check with your system administrator.
- Install_C.bat - This file calls the scripts to create the database-specific objects only. This optional script may coincide with scripts A or B.
Install A and B files run a series of multi-step SQL scripts, and produce log files for each.
Install A sets up an ASYMMETRIC KEY (Security) while Install B sets TRUSTWORTHY for anyone. See the table below for more details.
Install C file creates database-specific objects only.
Usage
Var | Name | Description |
---|---|---|
1 | serverLocation | Either “localhost”, IP address, or DNS name of the MSSQL server. |
2 | SA password | The password for the sa system administrator account. |
3 | dbName | The database name on which to install the stored procedure. |
4 | dbUser | The database user that will be using this feature. |
5 | dbPassword | The password for that user. |
6 | filePath | The file path to the EXTOLProcedureLibrary.dll file. This must also include file name. For example: C:\MSSQL_DBMon\EXTOLProcedureLibrary.dll |
The generic format for calling the file (Install_A.bat) is shown below.
Install_A.bat <serverLocation> <SA password> <dbName> <dbUser> <dbPassword> <filePath>
Results
The scripts automate the configuration process, as described here.
Stage | Description |
---|---|
1 | CLR will be enabled on your MS SQL Server installation. This is a requirement in order to use Database Monitor objects. |
2 | Assemblies and stored procedures will be created. Variations of this process exist
when using an ASYMMETRIC KEY or a TRUSTWORTHY property. When running the installation with the creation of a ASYMMETRIC KEY, the following occurs:
WHEN running the installation with the creation of a TRUSTWORTHY property, please
note:
|
3 | EXTOLProcedureLibrary.dll and the sendMessageToEBI stored procedure
will be installed. System Administrator access and/or permissions are required.
|
4 | The EXTOL_DBMONITOR table will be created, providing the location where messages are queued prior to being dispatched to Clarify. |
5 | A trigger (SendOnInsert) will be created and deployed on the EXTOL_DBMONITOR table. This initiates the stored procedure as required. |
For More Information
- Enabling CLR Integration
- ASYMMETRIC KEY
- TRUSTWORTHY Database property