How can I connect to firebird database from powershell script (.ps1)?
Can someone provide me the code? I've tried with an SQL server and got no problem with that but I need to make a connection to firebird.
Your comments are heartily welcomed.
I've used InvokeQuery module
Code:
$password = ConvertTo-SecureString "****(mykey)" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("myuid", $password)
$db = "PDMconv_data.GDB"
$server = "89.105.195.151:D:\databases\PDMconv_data.GDB"
$query="select * from PGR010_GET_THE_ALGOPD;"
$result = Invoke-FirebirdQuery -Sql $query -Database $db -Server $server -Credential $mycreds -Verbose
$result | ft