Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
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
12y
2.2
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