Hi folksI'm trying to adapt the powershell script at [url=http://sysadmingrunt.blogspot.com/][/url] into my own environmentThe modifications I made to the original code was to pass a *.sqb in the end of the identified filename for each database backup (I have 4 sqb files per database backup). The original script was built to handle one backup file per database.The script is working, it does restore the databases but errors are being thrown in the redgaterestore function:Error message:Exception calling "ExecuteNonQuery" with "0" argument(s): "Timeout expired. The timeout period elapsed prior to completion of the operation or the server isnot responding."At T:\restoresp.ps1:87 char:32+ $SQLCommand.ExecuteNonQuery <<<< () | Out-Null + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodExceptionException calling "ExecuteNonQuery" with "0" argument(s): "Timeout expired. The timeout period elapsed prior to completion of the operation or the server isnot responding."At T:\restoresp.ps1:87 char:32+ $SQLCommand.ExecuteNonQuery <<<< () | Out-Null + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodExceptionAnd when running this script as part of a SQL job, the job itself fails as this error is thrown.Any help would be greatly appreciated
↧