realice un script sencillo pero que vale para la prueba:
create table prueba (numero  int)
create procedure p_insert
as
declare @numero int
begin
    set @numero = ((select isnull(max(numero),0) from prueba) + 1 )
    insert into prueba values (@numero)
    select * from prueba
end
 
y en asp:
<% const adCmdStoredProc = 4
   set cnn = Server.CreateObject("ADODB.Connection")
   cnn.open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=tempdb;Data Source=w2k-datahome" 
   set cmdprueba = Server.CreateObject("ADODB.Command")
   Set cmdprueba.ActiveConnection = cnn
   cmdprueba.CommandType = adCmdStoredProc
   cmdprueba.CommandText = "p_insert"
   set rsprueba = Server.CreateObject("ADODB.Recordset")
   set rsprueba = cmdprueba.execute
   rsprueba.movefirst
   do until rsprueba.eof
      response.write rsprueba("numero")
   loop
%>
 
el error que me da es el siguiente:
"The operation requested by the application is not allowed if the object is closed."
 
y por más que ponga rs.prueba.open da el mismo error. Espero que puedan ayudarme, gracias.     
  
 
