• When I tested the scripts on SQL Server 2008 SP1, it runs into problems:

    Msg 102, Level 15, State 1, Line 7

    Incorrect syntax near '?'.

    Msg 137, Level 15, State 2, Line 39

    Must declare the scalar variable "@BackupServerNameInput".

    Msg 137, Level 15, State 2, Line 40

    Must declare the scalar variable "@BackupShareInput".

    Msg 137, Level 15, State 2, Line 41

    Must declare the scalar variable "@DoAFullBackupInput".

    Msg 102, Level 15, State 1, Line 49

    Incorrect syntax near '?'.

    Msg 156, Level 15, State 1, Line 50

    Incorrect syntax near the keyword 'ELSE'.

    Msg 102, Level 15, State 1, Line 89

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 115

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 129

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 142

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 192

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 219

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 235

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 248

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 302

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 327

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 329

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 345

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 358

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 47

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 59

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 129

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 144

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 163

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 178

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 197

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 210

    Incorrect syntax near '?'.

    Please help.

    Thanks,

    Edwin