Documentation
Getting Started
Data Grid
Modeling
Business Rules
Approvals
Users, Roles & Security
Integration & API
Installation
Migrating from MDS
Architecture
Documentation/Administration/Database Connection

Database Connection

The Connection tab tells Primentra which SQL Server to use, and deploys the database schema.

Access: Settings → General Settings → Connection

The Connection tab with the connection string preview
The Connection tab with the connection string preview(click to enlarge)

Connection fields

FieldDescription
HostnameThe SQL Server machine, for example 127.0.0.1 or sql01.example.com
InstanceOptional. The named instance, for example MSSQLSERVER
PortOptional. The TCP port, for example 1433. Leave empty to use the default
DatabaseThe database name, for example Primentra
UsernameThe SQL login Primentra uses
PasswordThe password for that login. Click the eye icon to reveal it
Trust Server CertificateOn by default. Required for self-signed or internal SSL certificates

Type HOST\INSTANCE in Hostname and Primentra splits it for you: the part before the backslash goes to Hostname, the rest to Instance.

Connection string preview

Under the fields, Primentra shows the connection string it will use:

Server=localhost;Database=Primentra;User Id=primentra_svc;Password=…;TrustServerCertificate=True;

The preview updates as you type. Use the copy button next to the label to put it on the clipboard — useful when you want to test the same string in another tool.

Test the connection

  1. Fill in the fields.
  2. Click Test Connection.
  3. Read the result panel next to the button.

A green Connected panel shows the SQL Server version. A red Connection failed panel shows the driver's own error message. Testing does not save the settings — click Save settings afterwards.

Database schema

The Database Schema section below the test button reports what is in the database.

  • On a fresh database — a Setup Database button creates all tables, indexes and stored procedures.
  • After an upgrade — an amber panel reads *Schema update available — v… → v…* with a Sync button that applies the new schema.
  • When schema and application match — no action is offered.

Primentra checks four things and shows each with a green or red mark:

  1. Feature installed — Full-Text Search is present on this SQL Server.
  2. Indexes created — both indexes exist: EntityRows (Code, Name) and EntityValues (TextValue).
  3. Queries working — a test CONTAINS() query runs successfully.
  4. Windows service — the SQL Full-text Filter Daemon Launcher is running.

If any check fails, click Show how to fix. Primentra prints the steps for that exact failure and the SQL script that creates the indexes, with a copy button. Refresh the page after fixing to re-run the checks.

Troubleshooting

SymptomWhat to check
*Login failed for user*The username and password. Confirm the login exists and is mapped to the database
*A connection was successfully established … certificate chain*Switch on Trust Server Certificate
*Could not open a connection to SQL Server*The instance name, the port, and that TCP/IP is enabled in SQL Server Configuration Manager
*Cannot open database … requested by the login*The Database name, and that the login has access to it
Test succeeds but the app shows no dataThe schema is missing. Click Setup Database
Search returns nothingFull-Text Search. Run the four checks above
*Could not reach API server*The Primentra API service is not running
Never point a live installation at a database you have not backed up. Changing the connection and clicking Setup Database deploys the full schema to whatever database is named in the field.

Ready to get started?

Start managing your master data with Primentra today.

View Pricing
Database Connection | Administration | Docs | Primentra