In SQL 2000, RETURN_VALUE is no longer recognized.
It's a bug in SQL Server 2000. See mskb#
Q285295-----------------------------------------------
Thank you Sergey.
As per mskb#
Q285295, the new command is:
lnResult = oCommand.Parameters('@RETURN_VALUE').Valueor:
lnResult = oCommand.Parameters(0).Valuewill also work.
Aristotle