0 votes
by (13.3k points)
How can I export a file from SQL Server via PowerShell?

1 Answer

0 votes
by (13.3k points)
Invoke-Sqlcmd -Query "SELECT * FROM dbo.GLExportQuery"  -Database di_prd_staging -Server EDI-Server | Export-Csv -NoTypeInformation -Path "c:\Temp\GLExportSQL.csv"  -Encoding UTF8
M3 and Related Technology

A place for me to remember the answers to questions I had to dig around to find. Please feel free to add questions and answers for anything related to Infor, M3, ION, and it's sprawling family.
...