• Hi, Please forgive me sounding silly but I am a bit of a novice...

    I am getting the follwoing errors. Are these as a result of my copying and pasting the script..? If so it might take me an age to try and debug as I can't see anything wrong with the transact SQL. Any tips please..?

    Msg 102, Level 15, State 1, Line 22

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 27

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 28

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 29

    Incorrect syntax near '?'.

    Msg 137, Level 15, State 1, Line 29

    Must declare the scalar variable "@objid".

    Msg 102, Level 15, State 1, Line 31

    Incorrect syntax near '?'.