Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJfkE-004Vg6-Q2 for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 21:20:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tJfjC-00DrbL-8R for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 21:19:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJfjB-00DrbC-6R for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2024 21:19:11 +0000 Received: from mx0a-0021c101.pphosted.com ([205.220.162.138]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJfj8-001P9P-5i for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2024 21:19:08 +0000 Received: from pps.filterd (m0195926.ppops.net [127.0.0.1]) by mx0a-0021c101.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B6KUcAW008682 for ; Fri, 6 Dec 2024 15:19:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mcw.edu; h= content-type:date:from:message-id:mime-version:subject:to; s= 11132019PPKEY; bh=IulQA6mBhmKBUllQZvmbE1kXc2JEMonBhjauTPxNUrM=; b= peSJPjDFZMQNwaAi2CXukSM1jruRq/La5r4nDJb4VLahn6DcgOhOCTBThTNhTftK 1yibduP9HP/JTn7O2YUvJYdEpoiH0FVm4a2MPRjnGEzwPRllgrhg6/2wH1UPr8Mx WH06JiLkrsJuSuS16lLrQlKYmSpJ9BG7YwvrdwPys7HJUcGAAVAupUUWLQFse4fD b3/WJh8xoca1WM96HvZuoKjK/ngBN71R3YrNYKcasQBNaXD6ZAl7j37eJ7BdKP6r kbKlz7xKkUUCvhyOBcgKBo2m7/MWJCMY0U9jctv8HhyFIg7df6znb+0GX4BPlFn2 T4Nr2Uorm95nufMJ6Unyzg== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0021c101.pphosted.com (PPS) with ESMTPS id 43c8ca07gp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 06 Dec 2024 15:19:04 -0600 (CST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vh3O7hl21DGDca7av7ZEztOEDdbWmWVGIS+IMyjCgFpirzlHMKYcdp9H8LYQ1f/IXKlfqmNTaRH9R921sdmkARow1MOeDWlq78fCPfnmH+Uugg9MXbbnPnWSAjdafAbdN/INMCCI3HXvH8++RMYbZNIkNPj/l1hKldB5w8KFRkgbXaKWPkw+JX5pUJOkkfXY1sB7zHX409ti92lLE7ZIIVAu4LGP9+7lyT+2fFbTqBqXjTIp7AoMi2ZHdDfJj7CGnBTqgzvEdYh96JQdMq8vamDoHaMjYq4VPygpe5CFLx7uximo5Hia15uBH04EanA7mAoStjL98QB6IpmF72yJWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IulQA6mBhmKBUllQZvmbE1kXc2JEMonBhjauTPxNUrM=; b=ysiMBjh1dw0WQaq8JtJ2wnRiL64vduYzE2OL7OCjvBbXXW+VijncsfvFi1rsbBIkUgb6XX+Hd17QfcfVgyDMNCDzuBwxnOiTN8+ea0eSWK3l5QItDD9wiK/pvuLr+bAkRI7HTI8o2DyjeDZAwqWPm+pMEGyMulV3FZkBLH1bJRpKNrXXw3UBOqvp63LJEepUpJFVaEWthazE+gegxLQG643j6XwnA8NYRgVL59w0o10FuANQ0ZIHtdLvXr0IhA9PHrrTMKUiq6JzD+Pgi3fffFVcIg8C7xcMF7ahBJzo4ycwUZ6TCJrFl8v2pxwTDbcNq5Ldqy8kW6znLYEGxS8rCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mcw.edu; dmarc=pass action=none header.from=mcw.edu; dkim=pass header.d=mcw.edu; arc=none Received: from CH2PR01MB5765.prod.exchangelabs.com (2603:10b6:610:42::30) by PH0PR01MB6102.prod.exchangelabs.com (2603:10b6:510:13::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.10; Fri, 6 Dec 2024 21:19:01 +0000 Received: from CH2PR01MB5765.prod.exchangelabs.com ([fe80::77f2:159b:dfea:4c16]) by CH2PR01MB5765.prod.exchangelabs.com ([fe80::77f2:159b:dfea:4c16%6]) with mapi id 15.20.8251.007; Fri, 6 Dec 2024 21:19:00 +0000 From: "Zacher, Stacy" To: "pgsql-general@lists.postgresql.org" Subject: tds_fdw DB-Library error: DB #: 20002, DB Msg: Adaptive Server connection failed Thread-Topic: tds_fdw DB-Library error: DB #: 20002, DB Msg: Adaptive Server connection failed Thread-Index: AdtIJHb45tOEMBKyS4+GGrtV4aBCjg== Date: Fri, 6 Dec 2024 21:19:00 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH2PR01MB5765:EE_|PH0PR01MB6102:EE_ x-ms-office365-filtering-correlation-id: 90276a0d-6488-4ba3-ee54-08dd163b9a49 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|41320700013|366016|8096899003|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?L8Spqzuw3JAp0d07xLXpWWTaFi60xbH730VBPvN7xNX4EM/jgVVg1lutKU8v?= =?us-ascii?Q?323yEZQozkxP+vnyYzSSOr7CxXXiuLi/5+WKIPBJb6868SRsZiJVnSqUQx8p?= =?us-ascii?Q?0ZCc4sBP5zZ56+6fRnTA08pU0VSOtq0jJDCGSygBHxvsYUimeBjB6m2pWlxw?= =?us-ascii?Q?1UBnKPOGh8/INrp7TfMFwn+IFThHs6uzSdE3az6TJc33QwObOxWuOHEgOkBZ?= =?us-ascii?Q?TB7SDk/ZRTcR53/KjxvmwUVfwg55kUZ+n+90kECRkPUfVEXzX7Xk6JTeQcW6?= =?us-ascii?Q?hxqOjBcjaID/iVlI0arFyb0YhW71oWwKgZScAW1lKQTSiMAYc+sKtUFhyItx?= =?us-ascii?Q?SznuR6STK1lMyMcESLvgSC32zeVx1l2LGjTIKoxlnbxoF7+IDH5p5yB/O0z5?= =?us-ascii?Q?hL1kwv2mY3rXu4+RglqxLNn2lVkxHqb349fgPvq8iAevvjFXsmF8NndXQfhK?= =?us-ascii?Q?9E55KMYDgbQtYqo/sI/V6K7VFwxgxmqm0WVMhmqCDLhh/qVSn46WqET5vKNX?= =?us-ascii?Q?Gwgd2g/HYpB4OYUds8Rc3MsFjUdjf59LCm1AJnGY5S08S/mlJKX4cppcAu43?= =?us-ascii?Q?1SaDYevzZUrikErSpqSKC8dsJ5jFOuLwvh98XC1tb96wLDG9aiGXW8lImE9S?= =?us-ascii?Q?UkS7MI4kH4NfDNLvXiohnDaSW1SaxE4xm/cwycYvTdkkXK2WaB2HV38dP9L8?= =?us-ascii?Q?oO2iEocY12NJpioVe2+YZmOs5lKki8pYF/YAAcgu4f0rQ1p3P5hIo/LLdI7n?= =?us-ascii?Q?iJsUQuLaTX9c8fVWu5exDkUhF92epORFzEymlnW4NF0WKfuiFL074L+qxXbi?= =?us-ascii?Q?go0Ok25mKYHZRoIc00ga9Txf9TCuGHq7QEhx1Sh2Z9qCIOZKhezSQv1NJSIn?= =?us-ascii?Q?2tfwXmkbgEvEsnepYxNRCq8fL7y1hmoiR511ARVhsOlXD+DN0LI9Db+FPYQw?= =?us-ascii?Q?AiMujiMO+Ow31yt+SbSrl2e+1/poflT2dOOJZYFMjNaaYu5l/gZ4g47w4mvR?= =?us-ascii?Q?5Dq6QEbRe1u3W9J8o5ZibbS07IFlaKECMhdDJnRl3pAakrgVB7eCyctPpCol?= =?us-ascii?Q?9+L3sElgXHXSOdwRJcqSnPG5TXtg6oIWat/cvG/7mDfkAl8TkLoeq7k7MoRe?= =?us-ascii?Q?AkTEdeIjFXWIawHSSvwdu0/ebqxBDGP0Lh0c/0YCdeV8vOlWy0+hJTszE20z?= =?us-ascii?Q?0ZDZwi1vFKWcuu5k2haNgDuZGJdUb7lRRMd83ccSly4IcQg1oDObFeQqzkTC?= =?us-ascii?Q?iSuYSbQMVVeXCKlRn6kHdylFe7iom2FPLSP45gS411x8msxfLjeXqRY6G61C?= =?us-ascii?Q?xtzuUaMZb0F+CxjiTKh5V1jj1SWlOfw51ZuZZcFi+WkbLrQ3xXS4crwRaeME?= =?us-ascii?Q?0rRvVBCgDFNqnm1IXp/re3qVZZxMO3siPkJol9lthuEGa2c4vA=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR01MB5765.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(41320700013)(366016)(8096899003)(38070700018);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Qfu0E3T8Z3PTAY7CPkZBuKnVLLL1XXq1I7GQhXnSCXquIbRIgmgmOfUMK/fL?= =?us-ascii?Q?/uVKUXA2t8kdiLaGh/V1Z7BEqaVVyQEACNWRphNgpGXnpt3Oi1dzGylgNcrY?= =?us-ascii?Q?1kPJ34ZUn6NYkPGn/VaY7hmDFiBpeIaHxKb4wrwFdgPPTj6vEc+a4eMMyfcJ?= =?us-ascii?Q?qmJYiBI+3MEPDzmXD0sXmiqM07YdgUr/NiYYcpjbYWCjg+tgfprzlnYEgbh2?= =?us-ascii?Q?kv8xF2KVH58SOOk5GUswlUnEEMdoB1MdkB+D20usPa7V7qRwaKgRnJnQsekI?= =?us-ascii?Q?cC/a3rSsyTDun7+bqCfX1j2x2UQ2boI4ALPHs8f3dXwRMsWVzbfRNslciAwr?= =?us-ascii?Q?RTWjU9LfB+lhAAXQH7f5Qt25JQ4hsC9k4SuSaDLDAhM5uqxNcaFLBNsT25LZ?= =?us-ascii?Q?X7mQdlgwn5Zs0DoW1QWANpO3THjJ0QIebCarEgbBUA9FVUqwg8Mo1vDwb9Nw?= =?us-ascii?Q?fhYyqQQGxSQuOUZSaUHn9kNMKFf50yN6D5bFRbDvgho73/L2e8bUzlAy3Mu7?= =?us-ascii?Q?aB01OWdM2veNKYvUKfSW4s0Mc6sU47DP6izh3AxwkCP1w4aCdfC9xg0xAywk?= =?us-ascii?Q?YGEGKKMBjbmO9cMSfXUwdbXGpNgChzRJ87Oa4k1WpeECvyRvO7HjebRBe3j0?= =?us-ascii?Q?FWMavH7Kv3dBsKUBToD8ANmGrI83CsnYfs09EnF0s5ysrjzUo4vWZuMG1Nsp?= =?us-ascii?Q?79wezPXTdF0s6i9roZ7Rc/pEsJNTdomZJ0+csjPWVgg/ind4S7Pu0ZvVBk7p?= =?us-ascii?Q?PiPjONXe721ScBu2raeqR/LMJ1+tlchq1o1K3TfqpzS3zj9RTtG9NeUkgDUc?= =?us-ascii?Q?iq/6MAcgzJDmxSfK2jaqNRBpeCDo2trKLWwxvAWbBJaKBEF/acRGQc7uljtB?= =?us-ascii?Q?5gSNx3Fb5vgVbN9dtR403102Ja60knPGz2xQdRY9SjxFTOtsKjT46s4jqWSM?= =?us-ascii?Q?BBGC11d7G3uz2qehLTbvqRCaMtghYOtAj+CfLiLzWL0HNE7WLkhp21ZED6L5?= =?us-ascii?Q?CDhjN6CAw8vZmFukhTRR6aFvHpBXRh5VuyEucyh4UI6uk9sX6W+i5QwcFQvg?= =?us-ascii?Q?EF1vcayG6S/Kyk5qhypAqnGFHn3GhcT8eg02yxxMWLAs2xZq/Z4g88zZvfUu?= =?us-ascii?Q?puPnJmEy9/ZNFoArtlsNFbtP9D3mqOqyYtsqj1fCqJOpjNT9NQdcbc40DwqE?= =?us-ascii?Q?VoFZhWe2R2c6686+5+tURpUbxY9ZX6EZRzp/bkTpNSamE03oCaJsAj0uD+Vu?= =?us-ascii?Q?mYx2OuLesRYfivA515VPsyFy7NH/5NunS7jV0TcfpUv2SfcdAbMAKJKC9AFo?= =?us-ascii?Q?tOqZWJEwNAVbgf4xzTPu7KRxw55b0JVvIC/fa5WQ8zpPweY1HaqF4bDuaPn5?= =?us-ascii?Q?/+JWadD9a4c3H7auUR6UHp/yOUeVGh+qjdHRINKyROmD4oNxRqpJ5kk4RuNs?= =?us-ascii?Q?eSuFb+hbc3g9tpWXk1t2mQKCmQNSzG4jsf4wBouxqTlu1ztQPgKCRsyFePIl?= =?us-ascii?Q?TwEhDmhLQLdld0rVcAc7a8u0YGKWxQ2nr67233k7c4nz0Dzk73Ugzye+KP0y?= =?us-ascii?Q?/3kyuQNE8NYvOQG0h+U=3D?= Content-Type: multipart/alternative; boundary="_000_CH2PR01MB57653B7D1D72D83320FDE4DEAD312CH2PR01MB5765prod_" MIME-Version: 1.0 X-OriginatorOrg: mcw.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR01MB5765.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90276a0d-6488-4ba3-ee54-08dd163b9a49 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2024 21:19:00.3306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9963652a-ab0a-4f1b-994a-b49e83d90f0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tJ0SRoNRWnKc1SPrh/6yogR2H964Kh+FDVHBNKV7b7Q66Qyb4SdFvm0bpP1lc+Qd X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB6102 X-Proofpoint-ORIG-GUID: pogn7huRavjATCmTiI2ILIGkgsaCQnFF X-Proofpoint-GUID: pogn7huRavjATCmTiI2ILIGkgsaCQnFF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 impostorscore=0 adultscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 spamscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412060160 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_CH2PR01MB57653B7D1D72D83320FDE4DEAD312CH2PR01MB5765prod_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello: We recently did an OS upgrade from Rocky Linux 8 to 9 on a Postgres v13 ser= ver that has 2 Foreign data wrappers that use tds_fdw for connections to 2 = different SQL Servers. After the OS upgrade, one of the FDWs stopped working for some reason but t= he other one still works. The error message when trying to run the import statement in psql is as fol= lows (I changed some of the names): using psql: mcwisprod=3D> IMPORT FOREIGN SCHEMA dbo from SERVER tds_mssql_mysqlserver i= nto interface_prod OPTIONS (import_default 'true'); ERROR: DB-Library error: DB #: 20002, DB Msg: Adaptive Server connection f= ailed (mysqlserver.somedomain.net), OS #: 0, OS Msg: Success, Level: 9 using DEBUG in the logging: 2024-12-04 19:26:10.568 CST [15175] STATEMENT: IMPORT FOREIGN SCHEMA dbo f= rom SERVER tds_mssql_mysqlserver into interface_prod OPTIONS (import_defaul= t 'true'); 2024-12-04 19:26:10.568 CST [15175] DEBUG: tds_fdw: Connecting to server 2024-12-04 19:26:10.568 CST [15175] STATEMENT: IMPORT FOREIGN SCHEMA dbo f= rom SERVER tds_mssql_mysqlserver into interface_prod OPTIONS (import_defaul= t 'true'); 2024-12-04 19:26:10.576 CST [15175] DEBUG: Failed to connect using connect= ion string mysqlserver.somedomain.net:1477 with user PData_Reader 2024-12-04 19:26:10.576 CST [15175] STATEMENT: IMPORT FOREIGN SCHEMA dbo f= rom SERVER tds_mssql_mysqlserver into interface_prod OPTIONS (import_defaul= t 'true'); 2024-12-04 19:26:10.576 CST [15175] ERROR: DB-Library error: DB #: 20002, = DB Msg: Adaptive Server connection failed (mysqlserver.somedomain.net), OS = #: 0, OS Msg: Success, Level: 9 After this would not work, I realized the tds_fdw was now version 2.0.4 so= the sysadmin downgraded it back to 2.0.3 (rebooted the server) in case tha= t was the issue. I'm still seeing the same error. I dropped everything with cascade (extens= ion, foreign server, user mappings etc.) and re-created everything. Still seeing the same error. I've worked with the network team to ensure = the connections are being made to the MSSQL Server. They saw the traffic, connection and then a TCP Teardown but said it is on = my side, not the side of the SQL Server. I tested connecting to the server/port via ncat and it returns successfully= . When I try sqlcmd or tsql, The 1477 port is static (vs. dynamic) [postgres@rh9server bin]$ ./sqlcmd -S 141.xxx.x.xxx,1477 -C -d Pdata_db -U = PData_Reader -P xxxxxxxxxxxxxx Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : TCP Provider: Erro= r code 0x2746. Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : Client unable to e= stablish connection. Free tds used is version 7.3 No special characters in the password for the sql server user mapping. The FDW that is still working is going to a SQL Server v14.x 2017 server an= d the broken one is going to a SQL Server version 13 2016 server. Also, I recreated the FDW that is broken on another server (Postgres 16 on = Rocky Linux 8) and it works there. So I'm puzzled here as to why it's not working on the upgraded server, yet = the other FDW on the same server still works. Any help on this issue would be greatly appreciated. Thank you, Stacy szacher@mcw.edu --_000_CH2PR01MB57653B7D1D72D83320FDE4DEAD312CH2PR01MB5765prod_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello:=

 =

We recently did a= n OS upgrade from Rocky Linux 8 to 9 on a Postgres v13 server that has 2 Fo= reign data wrappers that use tds_fdw for connections to 2 different SQL Ser= vers.

After the OS upgr= ade, one of the FDWs stopped working for some reason but the other one stil= l works.

 =

The error message= when trying to run the import statement in psql is as follows (I changed s= ome of the names):

using psql: =

 =

mcwisprod=3D> = IMPORT FOREIGN SCHEMA dbo from SERVER tds_mssql_mysqlserver into interface_= prod OPTIONS (import_default 'true');

ERROR:  D= B-Library error: DB #: 20002, DB Msg: Adaptive Server connection failed (my= sqlserver.somedomain.net), OS #: 0, OS Msg: Success, Level: 9

using DEBUG in th= e logging:

 =

2024-12-04 19:26:= 10.568 CST [15175] STATEMENT:  IMPORT FOREIGN SCHEMA dbo from SERVER t= ds_mssql_mysqlserver into interface_prod OPTIONS (import_default 'true');

2024-12-04 19:26:= 10.568 CST [15175] DEBUG:  tds_fdw: Connecting to server

2024-12-04 19:26:= 10.568 CST [15175] STATEMENT:  IMPORT FOREIGN SCHEMA dbo from SERVER t= ds_mssql_mysqlserver into interface_prod OPTIONS (import_default 'true');

2024-12-04 19:26:= 10.576 CST [15175] DEBUG:  Failed to connect using connection string mysqlserver.somed= omain.net:1477 with user PData_Reader

2024-12-04 19:26:= 10.576 CST [15175] STATEMENT:  IMPORT FOREIGN SCHEMA dbo from SERVER t= ds_mssql_mysqlserver into interface_prod OPTIONS (import_default 'true');

2024-12-04 19:26:= 10.576 CST [15175] ERROR:  DB-Library error: DB #: 20002, DB Msg: Adap= tive Server connection failed (mysqlserver.somedomain.net), OS #: 0, OS Msg= : Success, Level: 9

 =

After this would = not work, I realized the tds_fdw was now version 2.0.4  so the sysadmi= n downgraded it back to 2.0.3 (rebooted the server) in case that was the is= sue.

I'm still seeing = the same error.  I dropped everything with cascade (extension, foreign= server, user mappings etc.) and re-created everything.

Still seeing the = same error.   I've worked with the network team to ensure the con= nections are being made to the MSSQL Server. 

They saw the traf= fic, connection and then a TCP Teardown but said it is on my side, not the = side of the SQL Server. 

 =

I tested connecti= ng to the server/port via ncat and it returns successfully. 

 =

When I try sqlcmd= or tsql, The 1477 port is static (vs. dynamic)

 =

[postgres@rh9serv= er bin]$ ./sqlcmd -S 141.xxx.x.xxx,1477 -C -d Pdata_db -U PData_Reader -P x= xxxxxxxxxxxxx    

Sqlcmd: Error: Mi= crosoft ODBC Driver 18 for SQL Server : TCP Provider: Error code 0x2746.

Sqlcmd: Error: Mi= crosoft ODBC Driver 18 for SQL Server : Client unable to establish connecti= on.

 =

Free tds used is = version 7.3

No special charac= ters in the password for the sql server user mapping.

 =

The FDW that is s= till working is going to a SQL Server v14.x 2017 server and the broken one = is going to a SQL Server version 13 2016 server. 

Also, I recreated= the FDW that is broken on another server (Postgres 16 on Rocky Linux 8) an= d it works there.   

 =

So I'm puzzled he= re as to why it's not working on the upgraded server, yet the other FDW on = the same server still works. 

 =

Any help on this = issue would be greatly appreciated.  

 =

Thank you,

Stacy<= /span>

szacher@mcw.edu

 =

 

--_000_CH2PR01MB57653B7D1D72D83320FDE4DEAD312CH2PR01MB5765prod_--