I am trying to put data into a table in Postgres DB. Schema and table already exist. All I want is to use file as input source that could be insert into that table.
I used modules like SqlServer if you ask, here is a quick glimpse of that part of the script:
Import-Module SqlServer
$connectionString = Invoke-Sqlcmd -Username "USERNAME" -Password "PASSWORD" -Server "SERVERNAME" -Database "DATABASE_NAME"
Write-SqlTableData -DatabaseName "DASHBOARD_NAME" -SchemaName "SCHEMA_NAME" -TableName "TABLE_NAME" -Force -InputData -Path 'PATH WHERE THE FILE IS STORED'