• I only changed the path and the execution of the sproc renders the following error:

    Msg 536, Level 16, State 5, Procedure usp_restore_db, Line 58

    Invalid length parameter passed to the SUBSTRING function.

    which appears to be at line: print @db