Viewing 8 posts - 1 through 8 (of 8 total)
I feel for you. I encounter this issue many more times than I would like too.
I once read a comment suggesting that if you are not doing a join to...
October 8, 2021 at 8:32 am
And even better, you can use PowerShell to create the scheduled task. This would also serve as documentation for the changes that you have just made. And better still, you...
May 22, 2018 at 2:03 am
The SQLPS PowerShell module referenced in this article is no longer being updated by Microsoft. It has been superseded by the newer SqlServer module. See https://docs.microsoft.com/en-gb/sql/powershell/download-sql-server-ps-module?view=sql-server-2017 for details.
April 27, 2018 at 10:18 am
The PowerShell script in the article uses the SQLPS PowerShell module which may not exist on the computer on...
March 23, 2018 at 3:26 am
And... even better, the error message is clear and helpful. This is a lot better than the only vaguely useful "cannot convert varchar to int" message issued when you try...
November 9, 2017 at 3:18 am
The Invoke-Sqlcmd cmdlet is part of SQLPS which is part of a SQL Server installation (or possibly just the SQL Server tools). Where are you running your script?
If this in...
June 21, 2016 at 3:24 am
You could use the Open Source DLL EPPlus to write the output from a SQL query directly to an Excel spreadsheet, e.g.,
$cmdText = "select object_name(i.object_id) as [Table Name], i.name as...
September 9, 2015 at 5:05 am
Assuming that your target audience is SQL Server capable and PowerShell newbie, I think you have omitted some key details.
The Invoke-SqlCmd PowerShell cmdlet is not an integral part of PowerShell....
August 21, 2015 at 8:07 am
Viewing 8 posts - 1 through 8 (of 8 total)