InvokeQueryPowershellModule icon indicating copy to clipboard operation
InvokeQueryPowershellModule copied to clipboard

Unable to connect to PostgreSql

Open fdge opened this issue 7 years ago • 2 comments

Invoke-PostgreSqlQuery -Credential $Credential -Server $Server -Database $DB -Sql $QueryStr; Invoke-PostgreSqlQuery : Keyword not supported: data source Parameter name: keyword At line:1 char:1

  • Invoke-PostgreSqlQuery -Credential $Credential -Server $Server -Datab ...
  •   + CategoryInfo          : NotSpecified: (:) [Invoke-PostgreSqlQuery], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,InvokeQuery.InvokePostgreSqlQuery
    

fdge avatar Sep 01 '17 16:09 fdge

Connecting using ConnectionString: Invoke-PostgreSqlQuery -ConnectionString "Host=$Server;port=$Port;Database=$DB;Username=$Username;Password=$Password;" -Sql $QueryStr;

I'm commenting with this because I couldn't find how to connect to PostgreSql

fdge avatar Sep 01 '17 17:09 fdge

That was fixed in PR #8

Kanatovich avatar Oct 05 '17 06:10 Kanatovich