• doesnt work for me guys. Ran this in 2008 and get the following error

    Msg 1087, Level 15, State 2, Line 32

    Must declare the table variable "@Tbl".