Atlas Knowledge Base
Dashboard
Connectivity Without the Sybase Client

Connectivity Without the Sybase Client



SBN products SBN and BackupHostImport no longer require the Sybase Open Client to be installed on the host machine. A clean Windows box with no sql.ini, no CT-Lib DLLs, and no SYBASE environment variable is now a supported deployment target.


What Changed (In General)


Prior to this enhancement, every SBN workstation required a local Sybase Open Client install plus a carefully maintained sql.ini that mapped server names to host:port. If the Sybase client was missing, the wrong version, or the sql.ini drifted out of sync, SBN could not connect.


That dependency has been replaced by a pure-.NET Sybase driver shipped directly alongside the SBN binary. The driver speaks TDS 5.0 over TCP -- the same wire protocol CT-Lib used -- so the server side does not change. Only the client changes:

  1. No Sybase install on workstations. Nothing to download from Sybase, nothing to license, nothing to patch.
  2. No sql.ini edits. Server names are resolved from a JSON file that the app can edit through its own UI.
  3. No legacy file dependencies. A new workstation does not need sql.ini at all.
  4. Same experience for users. The login screen, server dropdown, and all database behavior look identical.

The Two Assemblies (Essential)


Every product that connects to Sybase now ships with two additional files next to its .exe. Both must be present or the Sybase login fails.


Together they replace every native Sybase file that was previously required. Both assemblies are copied automatically by each product's post-build script -- you should never have to handle them manually. If you are doing a bare-hands install, just confirm both DLLs sit in the same directory as the executable.


A complete install directory therefore contains, at minimum:


<product>.exe
Ibs.AseClient.dll
AdoNetCore.AseClient.dll
messages.txt
<other product-specific files>


No libsybct*.dll, no libsybcs*.dll, no sybintl.dll. No registry keys under HKLM\SOFTWARE\Sybase. No SYBASE or SYBROOT environment variables.


Server Name Resolution


Where CT-Lib read server names from %SYBASE%\ini\sql.ini, the managed driver reads them from servers.json.


Where each product and SBN version saves servers.json: Settings File Locations.


Schema (relevant portion):


{
"servers": [
{ "name": "SBNA", "host": "", "port": , "platform": "SYBASE" },
{ "name": "MSSQL_EXAMPLE", "host": "", "port": , "platform": "MSSQL" }
]
}
  1. Each product has its own servers.json: servers added in SBN.exe are not seen by the Concentrator or BackupHostImport. Server names match regardless of case.
  2. platform determines the connection path: SYBASE uses the managed driver, MSSQL uses ADO.NET (unchanged).
  3. A built-in Server Maintenance grid lets users add, edit, and remove entries through the UI.


Add/Edit/Remove controls on the toolbar.





Walkthrough -- SBN.exe


SBN.exe ships with both assemblies:

  1. Log in normally. If servers.json is empty, the login server dropdown is empty.
  2. Click the ... button next to the server name.
  3. The Server Maintenance window opens. Click Add and enter each server (name, platform, host, port) provided by your administrator.
  4. Close the dialog. Every imported server now appears in the login dropdown.
  5. Log in -- the managed driver connects directly over TDS with no further configuration.

From that point on, adding, renaming, or removing servers is a GUI operation. sql.ini is never touched again and may be deleted.


Walkthrough -- SBN BackupHostImport


BackupHostImport is the backup-server importer. It reads from a remote Sybase backup host and writes to the primary database.


To deploy on a clean box:

  1. Copy the BackupHost install directory. Confirm both assemblies are present alongside messages.txt.
  2. Launch SBN_BackupHostImport.exe. If servers.json is empty, add the backup-host server entry through the same Server Maintenance grid the other products use .
  3. On the main form, pick the server name from the dropdown and run the import. The managed driver connects, and the import proceeds exactly as before.

BackupHostImport keeps its own servers.json, separate from SBN.exe's. That file is its Sybase server list, so add the backup host there.


What Can Prevent a Sybase Connection


Removing the Sybase client removed one set of failure modes and introduced a different, smaller set. The list below enumerates every cause -- roughly ordered from most common to least -- that can block a connection in this deployment model.


Client-Side Prerequisites

  1. Either assembly missing. If Ibs.AseClient.dll or AdoNetCore.AseClient.dll is not present next to the exe, the login fails with CLR/Sybase client init failed: <file> not found at: <path>. Fix: confirm both DLLs sit next to the exe.
  2. servers.json missing, empty, or no matching entry for the server name the user picked. SBN has no address to connect to, and the login asks whether to add the server. Fix: add the entry via Server Maintenance, or Import from sql.ini. Log signature: GetDBType: servers.json not found at <path> or GetDBType: server=<name> not found in servers.json.
  3. Wrong platform value in the entry. An entry marked "MSSQL" routes through ADO.NET and never reaches the managed Sybase driver; an entry marked "SYBASE" does the opposite. Fix: correct the platform field.
  4. CLR can't host. Very rare on modern Windows, but a badly-broken .NET Framework install stops the Sybase driver from starting, before any connection is attempted. Fix: repair .NET Framework. Log signature: a CLR init: FAIL line in pid_<pid>.log; see CLR/Sybase client init failed.
  5. messages.txt missing. Does not block the connection itself, but produces UNKNOWNX / UNKNOWNY labels that often make users think the connection is broken. Fix: copy the file next to the exe. The app checks the exe directory first, then %LOCALAPPDATA%\IBS\SBN\.

Network / Firewall

  1. TCP to host:port blocked. The managed driver still needs direct TCP access to the Sybase server -- removing the Sybase client did not remove the network requirement. Firewall rules, VPN not connected, or a wrong IP / port in servers.json all produce the same symptom. Fix: confirm TCP reachability from the workstation (telnet, Test-NetConnection). Log signature: an AseException line after the driver's Connect: line in pid_<pid>.log.
  2. Going through SBN Tunnel, but the tunnel isn't up. When Connect via Tunnel is checked, the login connects through the local tunnel helper. If the tunnel fails during login, the login stops with the tunnel's message; uncheck the box to log in directly. If the tunnel goes down after login, SBN connects directly and returns to the tunnel once it is available again. Fix: see the SBN Tunnel page for tunnel-side diagnostics; verify the helper process started.

Sybase-Side

  1. Login / password wrong. The driver and tunnel are transparent to authentication -- the SQL login still has to be valid on the server. Fix: confirm credentials on the server. Log signature: AseException followed by AseError: #<n> sev=<n> lines in pid_<pid>.log.
  2. Packet size mismatch (older builds only). Pre-08.96 builds hardcoded PacketSize=4096, which can fail against servers that negotiate a smaller maximum packet size. Current builds negotiate the packet size with the server. Fix: upgrade the client. Log signature: login handshake failure.
  3. Connection charset mismatch. Driver defaults to iso_1 (Windows-1252), matching what CT-Lib did. A server configured differently will mangle accented characters but won't block the connection. Fix: do not override the charset without a specific reason.
  4. Server offline or at its concurrent-connection limit. Sybase itself rejects the login. Fix: check Sybase server health and sp_who counts. Log signature: AseError: #<n> sev=<n> lines in pid_<pid>.log.




What Specifically Does Not Matter Anymore


Their absence used to block connections. In this deployment model they are all ignored:

  1. No SYBASE / SYBROOT environment variables.
  2. No sql.ini.
  3. No libsybct*.dll, libsybcs*.dll, sybintl.dll, or any other native Sybase DLL.
  4. No registry entries under HKLM\SOFTWARE\Sybase.
  5. No ODBC Driver for Sybase.

If anyone troubleshooting a problem starts installing or re-installing the Sybase Open Client to "fix" things, they are working against the design of this deployment. The driver is in the two managed assemblies, and nothing else.


Fastest Triage


Open log\pid_<pid>.log and look for the last successful phase in this sequence:

  1. LoadServersJson -- file read and parsed
  2. IBS_SQL GetDBType -- server name matched to a servers.json entry
  3. IBS_CLRHost Connect -- managed driver Connect call

The first phase that fails pins the cause to one of the items above. If Connect is the first failure, read the lines that follow it in the same log: the driver writes Connect: (password masked), then Connected OK or an AseException / AseError block that names the cause (login rejected, connection refused, login timeout).


Diagnosing Problems -- The ./log/ Directory


Every SBN product writes a diagnostic log next to its exe, in a log\ subdirectory. When a connection problem is reported, this log usually contains what is needed to find the root cause without requiring server-side access.


What You'll Find in ./log/


<install dir>\
<product>.exe
log\
pid_<pid>.log -- main application log (always present)


One pid_<pid>.log is written per product instance. The PID in the filename prevents conflicts when multiple instances run on the same box. The filename's last-modified time matches the session's lifetime -- open the file, read the top few lines for startup metadata (user, server name, timestamp), and you'll know which run it represents.


Which Log to Read First


There is one log per SBN instance, pid_<pid>.log. It holds both the application's lines and the Sybase driver's connect and error lines.


What Each Log Contains


pid_<pid>.log -- written by IbsLog from every unit. Key sections:

  1. server_json -- LoadServersJson / SaveServersJson -- file path, parse status, server counts.
  2. IBS_SQL -- top-level connection orchestration; GetDBType trace showing which servers.json entry matched and what platform it resolved to (SYBASE vs MSSQL).
  3. IBS_CLRHost -- the boundary between SBN and the Sybase driver. Records Connect attempts, Disconnect events, ExecuteWithTimeout access violations, IsConnectionAlive exceptions, BcpOut/BcpIn with parameters and row counts.
  4. Standard MsgSys/InterpretFile entries confirming messages.txt was found and parsed (resolved path, message count; look for UNKNOWNX/UNKNOWNY indicating missing entries).

Sybase driver lines, written by Ibs.AseClient.dll into the same log and prefixed with a time of day. The driver logs connect and error events only:

  1. Connect: the connection settings (host, port, user, database, charset), with the password masked.
  2. Connected OK when the login succeeds.
  3. AseException: with indented AseError: #<n> sev=<n> lines for a Sybase error, and Exception: for any other failure such as a refused or timed-out connection.

Per-statement detail (queries, bulk copies, disconnects) is in the application's IBS_CLRHost lines.

Workflow: Reviewing Logs Remotely

When a user reports a problem:

  1. Ask for the most recent log\pid_<pid>.log next to their running exe.
  2. If the SBN folder is not writable, also ask for the log under %LOCALAPPDATA%\IBS\.
  3. Open the main log first, search for the timestamp of the failure, trace the phase: server_json LoadServersJson → IBS_SQL GetDBType → IBS_CLRHost Connect → driver Connect: / Connected OK.
  4. The failure is almost always at the transition between phases -- find the last phase that succeeded, read the first entry of the next phase, and the error message there names the root cause.

What You Get

  1. Clean deployments. A new workstation needs the SBN product and nothing else for Sybase connectivity.
  2. GUI server management. Server names are added, edited, and removed through the app's own UI, not by editing files.
  3. One format. All three products read a servers.json with the same layout, one file per product.
  4. Forward-compatible. The same managed driver supports connecting through SBN Tunnel with no extra configuration -- see the SBN Tunnel page.
  5. Complete client-side diagnostics in ./log/ -- one pid_<pid>.log next to the exe holds the application's lines and the driver's connect and error lines.


Troubleshooting


"[Microsoft][ODBC SQL Server Driver][DBNETLIB]" error on login


If the login dialog shows an error matching any of the screenshots below:


MSSQL DBNETLIB SQL Server does not exist or access denied (State 08001, NativeError 17)


MSSQL DBNETLIB ConnectionOpen Connect (State 01000, NativeError 53)


Database login failed: MSSQL DBNETLIB ConnectionOpen Connect


...the workstation has been told to talk to the server using the Microsoft SQL Server driver, even though the server is actually a Sybase server. The two are different protocols and the connection cannot succeed. From SBN 8.92.77, SBN no longer falls back to the Microsoft SQL Server driver, and from 8.92.87 it asks The Server <name> is not defined. Add it now? instead. If you are seeing the raw DBNETLIB text above, you are on a build older than 8.92.77 and the cause below applies.


Cause: the server name you typed at the login screen does not match an entry in the workstation's servers.json. When the lookup misses, older builds of SBN silently default to the MSSQL ODBC path and try to connect over DBNETLIB. The Sybase server doesn't speak that protocol, so the driver returns the error above. Common reasons for the lookup to miss:


  1. The server name was entered with different spelling or extra whitespace than the entry in servers.json.
  2. The servers.json file does not contain this server at all (first-time setup that did not complete, or the file was overwritten).
  3. The servers.json entry has "platform": "MSSQL" when the server is actually Sybase. (For a Sybase server, the entry must be "platform": "SYBASE".)
  4. The servers.json entry is missing one of the required fields (name, platform, host, port).


Fix


  1. Open the servers.json file. Its location depends on the product:
  2. SBN.exe: %LOCALAPPDATA%\IBS\SBN\servers.json. SBN 92 (build 08.92.0105 and later): the folder in Settings File Locations.
  3. SBN Concentrator: %LOCALAPPDATA%\IBS\Concentrator\<instance>\servers.json
  4. BackupHostImport: %LOCALAPPDATA%\IBS\BackupHost\servers.json
  5. Confirm there is an entry whose name field matches what you type in the login dialog (case does not matter).
  6. Confirm "platform" is "SYBASE". Any other value, including a missing field, will not be treated as Sybase.
  7. Save the file and re-launch SBN. Type the server name into the login dialog exactly as it appears in the name field.


"App locks up" after the error


The same root cause produces an apparent lock-up on some Windows builds: the ODBC driver's TCP connect attempt against a non-MSSQL server can take 30+ seconds to time out, during which the SBN window does not respond. Closing the error dialog and waiting for the underlying connect to time out releases the window. Fixing the servers.json entry as above eliminates the lock-up because SBN no longer attempts the MSSQL connect path.


CLR/Sybase client init failed

Database login failed: CLR/Sybase client init failed: CLR not initialized

SBN could not start the .NET Framework runtime that hosts the Sybase driver, so the login stopped before any connection to the server was attempted. The Connect via Tunnel setting and the network play no part in this error.

CLR not initialized is a follow-on message: an earlier login attempt in the same SBN session already failed while starting the runtime, and every later attempt repeats this generic text. To see the real cause:

  1. Close SBN completely and start it again.
  2. Try to log in once. The message on this first attempt names the cause (see the table below).
  3. If the message is unclear, open log\pid_<pid>.log in the SBN folder and find the first line that starts with CLR init: FAIL.
Message after CLR/Sybase client init failed:CauseFix
Ibs.AseClient.dll not found at: <path> or AdoNetCore.AseClient.dll not found at: <path>One of the two Sybase driver files is missing from the SBN folder.Copy both files from the same SBN release into the folder that holds SBN.exe.
Failed to load mscoree.dll, CLRCreateInstance not found in mscoree.dll, GetRuntime(v4.0.30319) failed, ICorRuntimeHost.Start failed or GetDefaultDomain failed.NET Framework 4.x is missing or damaged on the workstation.Install or repair .NET Framework 4.8 (Windows Features, or the Microsoft .NET Framework Repair Tool), restart Windows, then start SBN.
In-memory load of AdoNetCore.AseClient failed or In-memory load of Ibs.AseClient failedA driver file is damaged, comes from a different SBN release, or was blocked or quarantined by antivirus software.Replace both files with the copies from the installed SBN release and check the antivirus quarantine for them.
CLR not initializedAn earlier attempt in this session already failed.Restart SBN and read the message on the first attempt.

Other login errors

These messages appear in the login dialog, usually after Database login failed:.

Direct connection

MessageCauseFix
The Server <name> is not defined. Add it now?The server name typed at login has no entry in servers.json.Answer Yes and enter the server's name, platform, host and port, or check the spelling of the name.
Client unable to establish a connectionThe host in the server entry cannot be resolved to an address.Correct the host name or IP address in Server Maintenance.
Timed out trying to establish a connectionThe Sybase server did not answer within the login timeout: the server is down, the port is wrong, a firewall blocks it, or the VPN is not connected.Confirm the host and port in Server Maintenance and test them from the workstation with Test-NetConnection <host> -Port <port>.
Failed to establish connectionThe connection opened but closed during login, often because the port answers with a service that is not Sybase.Confirm the port in the server entry is the Sybase server's port.
Login failed.The Sybase server rejected the user name or password, or the login is locked.Check the credentials, and ask the database administrator whether the login is locked or expired.

Connect via Tunnel

When Connect via Tunnel is checked, a tunnel failure during login stops the login instead of connecting directly. Uncheck the box to log in directly while the tunnel problem is resolved.

MessageCauseFix
Could not reach activation server. Check your internet connection.The workstation cannot reach the license activation service.Check internet access and any proxy or firewall that filters outbound HTTPS.
Cannot reach the tunnel servers - outbound HTTPS to <addr> is blocked. Check your firewall or proxy.Outbound HTTPS to the tunnel service is blocked.Allow outbound HTTPS to the address shown.
Could not reach any tunnel dashboard. or No tunnel servers found.The tunnel service could not be reached, or returned no tunnel servers for this license.Retry in a few minutes; if it persists, contact support.
Invalid or inactive license key. or No farms available for this license key.The tunnel license key is wrong, inactive, or not assigned to a farm.Re-enter the license key; if it is correct, contact support.
Your SBN Tunnel license has been suspended. or License is not registered at the dashboard. Verify the key matches this farm.The license is suspended or not registered for this farm.Contact support.
Tunnel server rejected the license. The key may be inactive or revoked.The tunnel server refused the license at connect time.Contact support.
This license is not authorized to endpoint <endpoint>.The license does not permit a connection to this database server.Ask support to authorize the endpoint for the license.
Cannot reach tunnel server <host> on port <port>. Your firewall must allow all TCP traffic to this port, not only SSH.A firewall blocks or inspects traffic to the tunnel server's port.Allow all outbound TCP traffic to that host and port.
Tunnel server is rate-limiting new connections. Wait a moment and retry.Too many connection attempts in a short time.Wait a minute and log in again.
Tunnel server host key did not match - connection refused. Please contact your tunnel administrator.The tunnel server's identity did not match the expected key.Do not retry; contact support.
Tunnel did not become ready within <n> seconds. See log file <path> for details.The tunnel took longer than the login allows to connect.Retry; if it repeats, send the log file named in the message to support.
Tunnel handshake failed: <reason>. See log file <path>.The tunnel connection failed for the reason shown.Act on the reason shown; otherwise send the log file to support.




Was this helpful?