Repository Database in SQL Server - DSS 6 | Data Source Solutions Documentation

Documentation: Repository Database in SQL Server - DSS 6 | Data Source Solutions Documentation

Repository Database in SQL Server

Data Source Solutions DSS allows you to create a repository database in SQL Server. The Repository Database section in Capabilities (6.1.0, 6.1.5) lists the supported SQL Server versions that can be used as a repository database.

It is recommended to create a new database (schema) for DSS repository. If an existing database is to be used for DSS repository, then the DSS repository tables can be separated by creating a new database schema and associating it with DSS's user as follows:

create schema <em>schemaname</em>;

Grants for Repository Database

The following grants are required for the repository database user in SQL Server:

grant create table to <em>username</em>;
grant create procedure to <em>username</em>;
grant select, insert, delete, update on schema::<em>schemaname</em> to <em>username</em>;
grant control on schema::<em>schemaname</em> to <em>username</em>;
alter user <em>username</em> with default_schema=<em>schemaname</em>;

Repository Database Connection

This section describes the details required for connecting to the repository database in SQL Server:

Field Description Equivalent Hub Server Property
SERVER

Name of the server (host) on which SQL Server is running and the Port number or the instance name of SQL Server.

The following formats are supported for this field:

  • server_name : Specify only the server name and DSS will automatically use the default port to connect to the server on which SQL Server is running.
    Example: myserver
  • server_name,port_number : Specify the server name and port number separated by a comma (,) to connect to the server on which SQL Server is running.
    This format is required when using custom port for connection or when SqlServer_Native_Replicator_Connection is defined.
    Example: myserver,1435
  • server_name\server_instance_name : Specify the server name and server instance name separated by a backslash (\) to connect to the server on which SQL Server is running.
    This format is not supported on Linux.
    Example: myserver\instance6048
SqlServer_Server
DATABASE Name of the SQL Server database. Database_Name
USER

Username for connecting DSS to the SQL Server database.

The login/user account used for connecting DSS to SQL Server database engine should be defined with SQL Server Authentication or Windows Authentication. If Windows Authentication is used for connecting to SQL Server database, the USER and PASSWORD field should be left blank (empty).

Database_User
PASSWORD Password for the USER. Database_Password

Advanced Settings

Field Description Equivalent Hub Server Property
LINUX / UNIX ODBC DRIVER MANAGER LIBRARY PATH

Directory path where the ODBC Driver Manager Library is installed. This field is applicable only for Linux/Unix operating system.

For a default installation, the ODBC Driver Manager Library is available at /usr/lib64 and does not need to be specified. However, when UnixODBC is installed in for example /opt/unixodbc the value for this field would be /opt/unixodbc/lib.
ODBC_DM_Lib_Path
LINUX / UNIX ODBCSYSINI

Directory path where the odbc.ini and odbcinst.ini files are located. This field is applicable only for Linux/Unix operating system.

For a default installation, these files are available at /etc directory and do not need to be specified using this field. However, when UnixODBC is installed in for example /opt/unixodbc the value for this field would be /opt/unixodbc/etc.
ODBC_Sysini
ODBC DRIVER Name of the user defined (installed) ODBC driver used for connecting DSS to the SQL Server database.It is recommended to leave this field empty, DSS will automatically load the correct driver for your current platform. Otherwise, select one of the available SQL Server Native Client options. ODBC_Driver