Thanks, I'd appreciate it if you could send me your code (address in profile). Off-topic, but I think the version of SQL Server (6.5) I'm using is much older than 2000 (not sure though, but it's running on a creaking server w/ NT4).

[EDIT: I googled it. 6.5 was released in April 1996]