none
Invoke-sqlcmd message handling RRS feed

  • Question

  • Hi All. if I using invoke-sqlcmd, how to handle the information output and error output.

    for example, I update 2 rows, if successful it would show 2 rows , and command is successful in Management studio.

    if there is error during update, there will be error code, serverity , error message in Management studio

    I want to achieve the same thing in powershell ISE. any method ?

    Friday, September 19, 2014 9:36 AM

All replies