Skip to main content

Database connection

Open with Workspace → Connections → Database… on the main menu bar. A modal dialog for connecting to an Oracle or SQL Server database.

The Database Vendor dropdown at the top picks Oracle or SQL Server; the form below changes accordingly.

Managing saved connections

To browse, remove, or refresh every saved connection in one place rather than going through this dialog one at a time, use Workspace → Connections → Manage saved…. It lists every connection with name, vendor, summary, and last-used time, and is sortable by any column.

Common controls

ControlWhat it does
Execution ModeDropdown (shown when enabled for this workspace): which execution mode to use.
Reversal ModeDropdown (shown when enabled for this workspace): which reversal mode to use.
Auto-connect on startupCheckbox at the bottom: automatically connect when opening this workspace. Only available when using Windows authentication or when credentials are saved.
DisconnectClose the active connection. Shown only when connected.
ConnectActivate the selected connection as the workspace's current database.
TestVerify the connection works without making it active.
CancelClose the dialog without changes. While a Connect or Test is running, this button aborts the in-flight operation instead.

Connect / Test show their progress inside the dialog, and any error appears as an inline message below the form rather than in a separate pop-up window. The status-bar connection indicator only turns green for the connection that's actually in session, so it can no longer disagree with the dialog's state.

SQL Server

FieldWhat it holds
Previous ConnectionsDropdown of saved connections. The ✕ button next to it deletes the currently-selected saved connection.
Connection NameThe friendly name the connection will be saved as.
ServerThe SQL Server hostname or host\instance.
DatabaseThe database / catalogue name.
AuthenticationDropdown: picks the auth method (Windows, SQL, etc.).
UsernameOnly shown for password-based authentication.
PasswordOnly shown for password-based authentication. Masked.
Trust Server CertificateCheckbox: bypass certificate validation for the connection.

Oracle

Oracle supports four connection types selected via the Connection Type dropdown. Different fields show up for each.

Common fields (all connection types)

FieldWhat it holds
Previous ConnectionsSaved connections dropdown with delete button.
Connection NameFriendly name for the saved connection.
Connection TypeDropdown: Basic, DataSource, Cloud, Custom.
AuthenticationDropdown: auth method.
UsernameAlways shown (enabled when password auth is selected).
PasswordShown only for password auth. Masked.

Connection Type: Basic

Additional fields:

FieldWhat it holds
HostnameThe Oracle server hostname.
PortTCP port (usually 1521).
Service NameThe Oracle service name.
Instance NameThe Oracle instance name.
SIDThe Oracle SID (if using SID-based connection).

Connection Type: DataSource

Additional fields:

FieldWhat it holds
Data SourceThe TNS alias / data-source name.
Wallet LocationFolder path with Browse button.
TnsAdmin LocationFolder path with Browse button.

Connection Type: Cloud

Additional fields:

FieldWhat it holds
URLThe cloud connection URL.

Connection Type: Custom

Additional fields:

FieldWhat it holds
Custom StringA multi-line textbox for a hand-written connection string.

Kerberos authentication

Kerberos single sign-on against Oracle is supported directly through DataStar's managed Oracle driver. In v3, you do not need to install MIT Kerberos on the client machine, which was a prerequisite in v2. DataStar ships with Oracle.ManagedDataAccess.Kerberos and Kerberos.NET built in, so the managed driver negotiates Kerberos itself.

To connect with Kerberos:

  1. Set Connection Type to DataSource.
  2. Set Data Source to your Oracle TNS alias.
  3. Set Authentication to Windows Authentication.
  4. Set TnsAdmin Location to the folder containing your sqlnet.ora.
  5. Connect.

For full configuration — sqlnet.ora settings (including the common OSMSFT:// mistake), Active Directory prerequisites, verification, and troubleshooting — see Oracle Kerberos setup.