January 6, 2021 at 7:35 pm
I inherited a manually produced report where I take the results of a TSQL query, and save it to a specific SharePoint document library as an XLSX file. To automate this report, I've experimented with SQLCmd and SSRS. The problem with both of those methods is that 1 or 2 intermediate files are produced. The first is a CSV, and the second is a XLSX file.
I'm prototyping a PowerShell script to use the Invoke-SQL command to create a recordset object that is used to create an XLSX object before exporting the file to the final destination on the SharePoint site. I'm looking for a clear-cut example on how to render TSQL results as an XLSX object and then push it up to the SharePoint site, without producing a file on disk.
Any PowerShell gurus that can point a finger in the right direction for me?
Thanks!
Brandon.Forest@RiverCityBank.com
Senior SQL DBA
January 7, 2021 at 8:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply