• Nice idea. But I'm getting error while trying to create the proc.

    Msg 102, Level 15, State 1, Procedure USP_BackupDatabasesOnPr01, Line 32

    Incorrect syntax near '?'.

    Seems that there's something on the previous line SQL doesn't like.

    Ken