In category Database connection, define access on database (e.g. MSSQL, Oracle, etc.).
ODBC driver: The functionality for the use of ODBC is automatically given.
If the database is driven via AppServer, then the ODBC driver has only to be installed on the server. Only if the database is directly connected, it is also needed on the clients.
In the dialog area Available database connections, in the list field Template, select "MSSQL via ODBC".
All drivers installed under
libs/all/java/jarare listed in the dialog area Available database connections, in the list field Template (the mentioned are delivered and are always available).Others have to be downloaded at the respective database supplier (Oracle, Microsoft) and copied in the directory
libs/all/java/jar. They are NOT installed by CADENAS.Please download them under one of the following addresses.
https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html
sqljdbc_12.2\deu\mssql-jdbc-12.2.0.jre8.jarbzw.sqljdbc_12.2\deu\mssql-jdbc-12.2.0.jre11.jarhttps://learn.microsoft.com/de-de/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver16
Via button, create the needed database connection and on the right, fill respective fields. Then under Active database connection, select the desired one.
You can also enter a variable under Active database connection. For example, enter "$DATABASETYPE" and create this variable e.g. in the start.env.
[ENVIRONS]
CADENAS=%DirOfThisFile%
CADENAS_SETUP=C:\ProgramData\PARTsolutions\setup
CADENAS_DEFAULTUSER=$CADENAS_SETUP\user\default_user
CADENAS_SITESETUP=C:\ProgramData\PARTsolutions\sitesetup
CADENAS_USER=%UserAppData%\PARTsolutions\user
CADENAS_LICENSE=$CADENAS_SITESETUP\lic
CADENAS_POOL=C:\ProgramData\PARTsolutions\pool
CADENAS_DATA=C:\data\
DATABASETYPE=group1
Now create connection via , where the value refers to the value of DATABASETYPE.
Select desired Active database connection. The name has to correspond to one of the available database connections.
The item Driver Class is omitted for ODBC. The setting options for JDBC are "net.sourceforge.jtds.jdbc.Driver" and "SQLite.JDBC.Driver".
Connection String: Replace the placeholders by the real data.
The Connection String contains all needed information for the LinkDB access. (Setting up the ODBC data source is not required.) Admin rights are not required.
All options of the connection string can be found in the respective driver documentation.
Optionally, enter DBO user and DBO Password. This is required for changing the database schema like creation of table columns or saving the database.

![[Note]](https://webapi.partcommunity.com/service/help/latest/pages/it/partwarehouse/doc/images/note.png)
