Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Register
Login
Redirecting Console Output and Error Output to a Variable and E-mailing it
WhatsApp
Akkiraju Ivaturi
12y
1.6
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/
SQL Server
SQL Server 2012