IBM Support

Select from a federated SQL Server datasource may return "SQL1822N General network error"

Troubleshooting


Problem

After applying a SSL certificates on the SQL Server, you may see "SQL1822N General Network Error" while doing a SELECT from a federated SQL Server datasource.

Symptom

Running SELECT from a federated SQL Server datasource will return below error:

select count(*) from dbo.datasource_group_memberships


SQL1822N Unexpected error code "08S01" received from data source "XYZDataSource".
Associated text and tokens are "func="DriverConnect" msg="General network error.error. Check your network documentation."


Running 'example', an ODBC DataDirect sample application will return similar error:

./example DataDirect Technologies, Inc. ODBC Example Application.

Enter the data source name : XYZDataSource

Enter the user name : db2inst1

Enter the password : <password supplied>
SQLSTATE = 08S01
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]General network error. Check your network documentation.

SQLSTATE = 01000
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]ConnectionRead (recv()).

SQLConnect: Retrying Connect.
SQLSTATE = 08S01
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]General network error. Check your network documentation.

SQLSTATE = 01000
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]ConnectionRead (recv()).

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Connectivity - Federated","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.8;9.7;10.1;10.5","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Express;Express-C;Personal;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
01 May 2025

UID

swg21962323