Re: run sp and return results to .asp

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 06/11/04


Date: Fri, 11 Jun 2004 13:27:29 -0400

Views do not support cursors.

That said, why do you need a view to call a stored procedure?

If you're using ADO, you can use the NextRecordset method to move to the
next recordset if you return more than one.

"Chris DiTommaso" <Chris DiTommaso@discussions.microsoft.com> wrote in
message news:8C7C0A6C-1C62-48CE-A5C8-D4ECC23F0A83@microsoft.com...
> I've written a fairly complex query in sql2k, but when I attempt to paste
the query into the 'new view' generator in Enterprise Manager, I get an
error "The Query Designer does not support the DECLARE CURSOR SQL
construct." I want to be able to call the sp from the .asp page, then
return the results to an .asp page. How do I handle up to 30 recordsets
that the sp will return to the .asp?



Relevant Pages

  • Re: Problem passing empty form fields to access parameter query
    ... Access2000 and how to pass parameters from forms in ASP. ... The query should return all records if the parameters are empty.This ... dim param_minvalue ... Your resultset will be returned in the recordset rs. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Sending ASP variable to Database Results Wizard query
    ... I was hoping to build my query using ASP and then dropping it into the DRW ... to narrow my recordset as shown in the query of my first message. ...
    (microsoft.public.frontpage.client)
  • Re: Random sort via SQL in ASP
    ... and I will be calling this recordset in a SQL statement from ... randomize from ASP? ... number in a field (e.g. sortfield as long) in the table. ... If you have an autonumber feild, you could use that in the query (e.g. ...
    (comp.databases.ms-access)
  • application/vnd.ms-excel
    ... I am using the below snipped of code to dump the Recordset content in my asp ... page to an excel file. ... However when the query is complete the content gets displayed to the web ...
    (microsoft.public.inetserver.asp.general)
  • Re: webbased search through catalog
    ... I've got the asp script working, but it seems to spit out results ... Modify q.catalog to specify your catalog name. ... > ' your logo is not a GIF file, or you don't want to copy it, change the ... > ' You can set the number of query results returned on a single page ...
    (microsoft.public.inetserver.indexserver)