Introduction into handling errors in PowerShell for SQL Server tasks

Posted on SQL Server Central See other posts from SQL Server Central
Published on Thu, 28 Jun 2012 06:00:00 UT Indexed on 2012/06/30 21:21 UTC
Read the original article Hit count: 195

Filed under:

PowerShell is becoming a great tool for managing SQL Server tasks, but like most tasks that are coded there is always the need for error handling to deal with the unknown. PowerShell has several options for handling and capturing error details and in this tip we will explain these options using PowerShell for SQL Server examples.

SQL Monitor What are your servers really trying to tell you?
Find out with new SQL Monitor 3.0, an easy-to-use
tool built for no-nonsense database professionals.
For effortless insights into SQL Server,
download a free trial today.

© SQL Server Central or respective owner