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.96) (envelope-from ) id 1vQTDD-008H5G-1g for pgsql-general@arkaria.postgresql.org; Tue, 02 Dec 2025 16:26:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQTDC-008xD4-12 for pgsql-general@arkaria.postgresql.org; Tue, 02 Dec 2025 16:26:46 +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.96) (envelope-from ) id 1vQTDB-008xCw-2W for pgsql-general@lists.postgresql.org; Tue, 02 Dec 2025 16:26:46 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQTD9-002lTv-0u for pgsql-general@postgresql.org; Tue, 02 Dec 2025 16:26:45 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id AB5DA1D00083; Tue, 2 Dec 2025 11:26:39 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Tue, 02 Dec 2025 11:26:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=1764692799; x=1764779199; bh=1OFrwACchsyl5H7xUsquh8wT0yprT0mUjxvb66vNK1U=; b= O3TO6m+Zl1RK/FvWCmGhRVh1b+6VDbUvgBzkWYc6Qtf9eKvYNvYo8CYuvCh+yD8/ bOv7FstJqKq7PUPcCBszLxOfpi62SUo08JVqluqMeq3+DFaaMMaaQXy21BCygaEg UXVUiNRpLLYQZWKFs0ndXDid4a6sPT6QoDmhfc/N2C715adhoC27HuH3zxXmxih8 SKvS+bdq0wPvrLJfgW6b6PgNHtIWaZgP+DMEBGW+92kA5o3WV/J1P4jTKAEOGvHS Ph1aOZuWabArVkXjhHGQggoidp4xzcFP1LjOu62rE/mRJ+ZGkhGeKC8rtAE15DOk RGHp6grNL/F6dYk+GGblFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1764692799; x= 1764779199; bh=1OFrwACchsyl5H7xUsquh8wT0yprT0mUjxvb66vNK1U=; b=O yDT490tHGAjJ/M2tZB8+a5amBU274kcxkH5/NJQexO6z3eC62ZXUg7WR5LNGmK3t EA3WvznwW+qob1aC+YsAUFSSFT91e0MMg903d4V/CDfOQ6RFKGpRW0JgmiDBavGT rC4Y7wmRp+4jGDGCCg0p2udHwzmX8m56jAEa8Vd1Sqi8m/Jd0qUTxinQu9KXQKj9 SBjnuyxB5LwlQH2OC6W++QhCvSJaPh9GPjOvG0e7ufkvvogvewWoWwmmrU8VnoSn gNssVRXCaDLy6Bzfi8NOlK9GI7OY/Xhdq2OpbHh9PTAK8MIqWliqCyO6l3yNNiGG LlGqI8kkDj0x5HKGYI8IQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegrihhl ohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpe fkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghnucfm lhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenuc ggtffrrghtthgvrhhnpeeihfevtedvfefgfedufedvtdeggfekvdettdelkeegtdffueek feffteevlefgtdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdhgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtph htthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehvihhjrgihrdhrvggu ugihsehprhhoghhrrghmmhhinhhgrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnh gvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepnhgrsghilhesvgig phgvrhhtshdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Dec 2025 11:26:38 -0500 (EST) Message-ID: <1e2493d4-f26a-49ea-bafd-80efec456c5d@aklaver.com> Date: Tue, 2 Dec 2025 08:26:38 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: ODBC_FDW not reading Foreign Tables To: Vijay Reddy , pgsql-general@postgresql.org Cc: nabil@experts.com References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/1/25 12:06, Vijay Reddy wrote: > Dear Postgres Support Team, > > Greetings! > This is  to bring to your notice that I am facing an issue with odbc_fdw > wrapper. My requirement is that I want to implement odbc_fdw extension/ > wrapper in PostgreSQL 17.6.2  to read remote tables from SQL Server > (Remote db). I have the following details and attachment with > screenshots. I am working for my client (Experts.com), Need immediate > attention. odbc_fdw is a third party extension you will need to contact other resources: 1) The dedicated Postgresql ODBC list: https://www.postgresql.org/list/pgsql-odbc/ 2) The issues page for the driver maintainers: https://github.com/CartoDB/odbc_fdw/issues If you need immediate attention then you will need to reach out to one of the professional support companies listed here: https://www.postgresql.org/support/professional_support/ When you do the above you will need to provide more information, at least: 1) Postgres version 2) SQL Server version. 3) OS version. 4) What fdw_win64_17_bin is and where you installed it from. 5) The location of your Postgres installation and ODBC installation > > > Tasks completed:1.  Downloaded fdw_win64_17_bin > >                              2.  Odbc_fdw  extension created. > >                              3. Created Foreign server  ( Reports_server) > >                              4. Tested DSN between odbc and sql db > ( remote live db) successfully > >                              5. User mapping done: mapped ‘postgres’ > user to  sql_prod_account/***** > >      6. Created foreign tables. > >      7. Select * from the public.”IpInfo”  failed  with driver error. > >      8. Postgres user not speaking to odbc > >      9. Tds_fdw files downloaded, right binary not available, not able > to create tds_fdw extension with available binaries. > >     10. ODBC Driver 17 for SQL Server is compatible with and DSN tested > successfully and connected via 1433 and user/password to live db > >      11.  Re-started postgres service with ‘Local System Account’ and > ‘Network Service’ Account. > > > > Issue:Not able to read foreign table data ( from Remote SQL DB) due to > error. > > Error:  Connecting to driver > > SQL State: 58000 > > * > > PostgreSQL service process can not load the odbc driver or connect > to the DSN defined file. > > > > Please let me know Why I am not able to read from foreign tables, > correct binaries, and further steps to read data from remote SQL DB > tables.  A quick response is greatly appreciated. > > Thanks & Regards, > Vijay Reddy | Database Architect > Programming.com > vijay.reddy@programming.com > Gurgaon | Bangalore | Mohali |  IT Park Panchkula| IT Park Dehradun | > Pune | Chennai > New York |  Los Angeles  | Ft Lauderdale  |  San Diego  |  San Jose | >  Phoenix  |  Chicago > > -- Adrian Klaver adrian.klaver@aklaver.com