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:
- No Sybase install on workstations. Nothing to download from Sybase, nothing to license, nothing to patch.
- No
sql.iniedits. Server names are resolved from a JSON file that the app can edit through its own UI. - No legacy file dependencies. A new workstation does not need
sql.iniat all. - 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:
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):
- 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. platformdetermines the connection path:SYBASEuses the managed driver,MSSQLuses ADO.NET (unchanged).- 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:

- Log in normally. If
servers.jsonis empty, the login server dropdown is empty. - Click the
...button next to the server name. - The Server Maintenance window opens. Click Add and enter each server (name, platform, host, port) provided by your administrator.
- Close the dialog. Every imported server now appears in the login dropdown.
- 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:
- Copy the BackupHost install directory. Confirm both assemblies are present alongside
messages.txt. - Launch
SBN_BackupHostImport.exe. Ifservers.jsonis empty, add the backup-host server entry through the same Server Maintenance grid the other products use . - 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
- Either assembly missing. If
Ibs.AseClient.dllorAdoNetCore.AseClient.dllis not present next to the exe, the login fails withCLR/Sybase client init failed: <file> not found at: <path>. Fix: confirm both DLLs sit next to the exe. servers.jsonmissing, 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 fromsql.ini. Log signature:GetDBType: servers.json not found at <path>orGetDBType: server=<name> not found in servers.json.- Wrong
platformvalue 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. - 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: FAILline inpid_<pid>.log; see CLR/Sybase client init failed. messages.txtmissing. Does not block the connection itself, but producesUNKNOWNX/UNKNOWNYlabels 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
- TCP to
host:portblocked. 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 inservers.jsonall produce the same symptom. Fix: confirm TCP reachability from the workstation (telnet,Test-NetConnection). Log signature: anAseExceptionline after the driver'sConnect:line inpid_<pid>.log. - 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
- 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:
AseExceptionfollowed byAseError: #<n> sev=<n>lines inpid_<pid>.log. - 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. - 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. - Server offline or at its concurrent-connection limit. Sybase itself rejects the login. Fix: check Sybase server health and
sp_whocounts. Log signature:AseError: #<n> sev=<n>lines inpid_<pid>.log.
What Specifically Does Not Matter Anymore
Their absence used to block connections. In this deployment model they are all ignored:
- No
SYBASE/SYBROOTenvironment variables. - No
sql.ini. - No
libsybct*.dll,libsybcs*.dll,sybintl.dll, or any other native Sybase DLL. - No registry entries under
HKLM\SOFTWARE\Sybase. - 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:
LoadServersJson-- file read and parsedIBS_SQL GetDBType-- server name matched to aservers.jsonentryIBS_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/
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:
server_json--LoadServersJson/SaveServersJson-- file path, parse status, server counts.IBS_SQL-- top-level connection orchestration;GetDBTypetrace showing whichservers.jsonentry matched and what platform it resolved to (SYBASE vs MSSQL).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.- Standard MsgSys/InterpretFile entries confirming
messages.txtwas found and parsed (resolved path, message count; look forUNKNOWNX/UNKNOWNYindicating 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:
Connect:the connection settings (host, port, user, database, charset), with the password masked.Connected OKwhen the login succeeds.AseException:with indentedAseError: #<n> sev=<n>lines for a Sybase error, andException: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:
- Ask for the most recent
log\pid_<pid>.lognext to their running exe. - If the SBN folder is not writable, also ask for the log under
%LOCALAPPDATA%\IBS\. - Open the main log first, search for the timestamp of the failure, trace the phase:
server_json LoadServersJson→IBS_SQL GetDBType→IBS_CLRHost Connect→ driverConnect:/Connected OK. - 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
- Clean deployments. A new workstation needs the SBN product and nothing else for Sybase connectivity.
- GUI server management. Server names are added, edited, and removed through the app's own UI, not by editing files.
- One format. All three products read a
servers.jsonwith the same layout, one file per product. - Forward-compatible. The same managed driver supports connecting through SBN Tunnel with no extra configuration -- see the SBN Tunnel page.
- Complete client-side diagnostics in
./log/-- onepid_<pid>.lognext 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:



...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:
- The server name was entered with different spelling or extra whitespace than the entry in
servers.json. - The
servers.jsonfile does not contain this server at all (first-time setup that did not complete, or the file was overwritten). - The
servers.jsonentry has"platform": "MSSQL"when the server is actually Sybase. (For a Sybase server, the entry must be"platform": "SYBASE".) - The
servers.jsonentry is missing one of the required fields (name,platform,host,port).
Fix
- Open the
servers.jsonfile. Its location depends on the product: - SBN.exe:
%LOCALAPPDATA%\IBS\SBN\servers.json. SBN 92 (build 08.92.0105 and later): the folder in Settings File Locations. - SBN Concentrator:
%LOCALAPPDATA%\IBS\Concentrator\<instance>\servers.json - BackupHostImport:
%LOCALAPPDATA%\IBS\BackupHost\servers.json - Confirm there is an entry whose name field matches what you type in the login dialog (case does not matter).
- Confirm
"platform"is"SYBASE". Any other value, including a missing field, will not be treated as Sybase. - Save the file and re-launch SBN. Type the server name into the login dialog exactly as it appears in the
namefield.
"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

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:
- Close SBN completely and start it again.
- Try to log in once. The message on this first attempt names the cause (see the table below).
- If the message is unclear, open
log\pid_<pid>.login the SBN folder and find the first line that starts withCLR init: FAIL.
Message after CLR/Sybase client init failed: | Cause | Fix |
|---|---|---|
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 failed | A 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 initialized | An 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
| Message | Cause | Fix |
|---|---|---|
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 connection | The 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 connection | The 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 connection | The 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.
| Message | Cause | Fix |
|---|---|---|
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. |