Connection Issue

From: Andy Hartman <hartman60home(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Connection Issue
Date: 2024-08-02 14:56:37
Message-ID: CAEZv3cqiwtn+QnPSvjtia1Tr8aVZuGBpmtMEOy-g6+6zVwrS-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm using a Powershell script to connect to a remote 16.3(windows) version
of the DB.

Add-type -path 'C:\Program Files
(x86)\PostgreSQL\Npgsql\bin\net451\Npgsql.dll'

# Define connection strings for MS SQL and PostgreSQL
$pgsqlConnectionString =
"Host=xxxxxx;Port=5432;Username=xxx;Password=xx;Database=xxx;"

# Create connection to PostgreSQL
$pgsqlConn = New-Object Npgsql.NpgsqlConnection
$pgsqlConn.ConnectionString = $pgsqlConnectionString
$pgsqlConn.Open()

When this statement hits I get an error:

Exception calling "Open" with "0" argument(s): "Authentication method not
supported (Received: 10)"

Any ideas?

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-08-02 15:05:33 Re: Connection Issue
Previous Message Ron Johnson 2024-08-02 12:52:46 Re: Impact from removal of pgadmin4