On line 39, replace adCmdStoredProc with the number 4.
Another option is to include the file adovbs.inc, with the line:
(assuming you put the file in your root web directory
or
(assuming you've got that dll)
Any time you've got things like adCmdTable, adOpenStatic - basically any variable that starts with "ad", it's probably that you're trying to use things from adovbs.inc so there's 3 options -
1)use the actual value
2) Use adovbs.inc
3) Use msado15.dll
Check out this article for more info:
http://www.asp101.com/articles/john/adovbs/default.asp
I am a loud man with a very large hat. This means I am in charge