Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW

Failed to connect to replica - MS SQL Always On Availability group

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
OritA
Support
Support

Failed to connect to replica - MS SQL Always On Availability group

Last Update:

May 7, 2021 5:23:46 AM

Updated By:

OritA

Created date:

May 7, 2021 5:23:46 AM

When replicating from MS SQL  Always On Availability Group endpoint and facing a problem of Replicate unable to establish connection to replicas with the following error: 
Failed to connect to replica 'XXXXXXXX\YYYYYY'
RetCode: SQL_ERROR SqlState: 08001 NativeError: 2 Message: [Microsoft][ODBC Driver 17 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2]


[SOURCE_CAPTURE ]T: sqlserver_src_set_odbc_connection_string(): connection string (without credentials): 'DRIVER={ODBC Driver 17 for SQL Server};SERVER=XXXXXXXX.ZZZZ.net;DATABASE=dbname;Trusted_Connection=no;' (sqlserver_endpoint_util.c:222)

Resolution


Problem is caused by wrong alias setting on the AlwaysOn Availability Group

The name of the alias needs to be XXXXXXXX.ZZZZ.net for connecting to replica XXXXXXXX\YYYYYY.

 

Labels (1)
Contributors
Version history
Last update:
‎2021-05-07 05:23 AM
Updated by: