Oh, I see. Well SQL 2008 will not allow you to remotely execute code (via SSMS) to SQL 2000 and earlier. Why I'm not sure and I have not tested it but this comes from Microsoft.
This code does not care about version numbers as long as the code you are trying to execute is a valid for that version of SQL.
That's it.
Rudy
Rudy