Pregunta

I have simple SQL stored procedure with several SELECT statements in it and want to extract this information like this:

Set cmd = Server.CreateObject("ADODB.command")
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "MyStoreProcedure"
cmd.ActiveConnection = objConnection
cmd.NamedParameters = True

cmd.Parameters.Append ...
cmd.Parameters.Append ...

Set rs = cmd.Execute()

How can I iterated over the rowsets in classic asp?

¿Fue útil?

Solución

You need use NextRecordset method, see description here http://msdn.microsoft.com/en-us/library/windows/desktop/ms677539(v=vs.85).aspx

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top