C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Redirecting Console Output and Error Output to a Variable and E-mailing it
WhatsApp
Akkiraju Ivaturi
13y
2.3
k
0
5
Resource
0
The author describes a script that runs a command-line app and takes all the output (including the error stream) and joins it into a string and then sends it in an email in this article.
http://www.sqlservercentral.com/blogs/nycnet/2012/08/28/powershell-redirecting-console-output-and-error-output-to-a-variable-and-e-mailing-it/
PowerShell
SQL Server
SQL Server 2012