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 1tJgDq-004Y6P-Ak for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 21:50:50 +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 1tJgDm-00E1Mi-Og for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 21:50:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJgDl-00E1Ma-AB for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2024 21:50:47 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJgDe-001PrI-Dv for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2024 21:50:45 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 091F61140146; Fri, 6 Dec 2024 16:50:36 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 06 Dec 2024 16:50:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733521835; x=1733608235; bh=1FmFyqFq4qWw1wOGtZwSeyofgqnCjpwXn6CWyHYJ41Y=; b= OB+S9m3NqEHpTgqg+lLkOxX5QEI5iEGeULH7epDHSGclA7CBzPcnAECj4kRKR/jY iUC808YeuyroOOM79oWEWlY6c9BQv25nfJ4y/CLLaK66zkegdIDFWV2hE29YmSoV bKWx3tBrLh2Ndpvm851bSJFDn436ldXzA1LGqrJSJnUCI7yt/t1EyGw7zjWoqA5c gsWY1gUmVG34hdG9hFKSvmOnlt6waczxQ09c8LatsHVF+hI6g3SMyFN76i6V+l+p LXq/Q7RFxzUboKIbIVVUVgknUWkUGt+wfzNL4c/OQ0vrYPjS0DqSqYGirBrYVPCo gHkVUCmgIGzyiQvpAJSlOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733521835; x=1733608235; bh=1 FmFyqFq4qWw1wOGtZwSeyofgqnCjpwXn6CWyHYJ41Y=; b=KJ5SYmoyRaoBeIuV5 xNI3/U6FadjENeVMMjkvNnMRc5OvaHEyMDoEt8/GXxY1nq9BO7IajCIjFfzRQQa3 AKRmBIlvg3bFz6zzDypGfouFTbGkpbpGJ6uJsiJ3T9lrPRe4J/ilDSDXBW0P1eIX LDWwSY7NCly/kXAI69Xyafzc64AFI84VcHoDvfZgS4qSfHyNf4OxnKVAg1OxWdfb EU0mZmz5eY17LszZBbDQWvFOB21Ek0lUMeAsbVo7KUPt1lKW1aVGeQIBOVY33wbh BTUKmgRRbHMGJotTf9MzuVYDT3zCRT4x36auoT1fqTlSJLify7pcdNdOautrbvz8 X3Fiw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieelgdduheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileej ieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehsiigrtghhvghrsehmtgifrdgvughupdhrtghpthhtohepphhgshhqlhdq ghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Dec 2024 16:50:34 -0500 (EST) Message-ID: <8dc1be7b-1a1b-4286-b939-12f60e906a4c@aklaver.com> Date: Fri, 6 Dec 2024 13:50:34 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: tds_fdw DB-Library error: DB #: 20002, DB Msg: Adaptive Server connection failed To: "Zacher, Stacy" , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/6/24 13:19, Zacher, Stacy wrote: > Hello: > > We recently did an OS upgrade from Rocky Linux 8 to 9 on a Postgres v13 > server 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 the other one still works. > > The error message when trying to run the import statement in psql is as > follows (I changed some of the names): > > using psql: > > 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: > Error code 0x2746. Some searching mentions that this 'TCP Provider: Error code 0x2746.' can be related to lack of TLS 1.2 support. I don't see your tsql connection attempt. > The FDW that is still 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. Are the SQL Server instances running on the same machine? If not what versions of Windows are they using in each case? > > 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 > -- Adrian Klaver adrian.klaver@aklaver.com