Problem returning data with a stored procedure

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Problem returning data with a stored procedure

    I have an ASP calling a stored procedure to return a recordset. The stored
    procedure quires
    another server for part of the data being returned (using linked MS SQL 7
    servers). The stored
    procedure runs fine from with query analyzer, but I get this when calling
    from within the
    ASP page:

    error 'ASP 0113'
    Script timed out

    If I comment out the lines in the stored procedure, it runs fine from within
    ASP then. So I'm
    thinking it must be some type of permission issue. Any ideas??

    Thanks


    Wayne Guest

  2. Similar Questions and Discussions

    1. Help - stored procedure not returning a recordset
      I have an ASP page that calls a SQL Server stored proc that should return multiple recordsets, but it appears to be returning something else, or it...
    2. Stored Procedure not returning values.
      There are two problems: 1. SQL Server returns the "x number of records affected" message that you see in Query Analyzer to the client as a...
    3. Stored Procedure Not Returning
      I have a stored procedure that calls another stored procedure. The second stored procedure will run and update the correct data - it just never...
    4. Stored Procedure not returning the wanted resultset
      My stored procedure is not returning the resultset I am expecting. The procedure is: CREATE PROCEDURE hms.getHMStest( @userid int, @userrole...
    5. Help with Stored Procedure returning recordset
      Hi, Try to add set nocount on in the beginning of procedure. "Scott McDaniel" <junk@junk.com> wrote in message...
  3. #2

    Default Re: Problem returning data with a stored procedure

    Have you made sure the the user your ASP pages are running
    under has an account on the linked SQL server and that it
    is able to authenticate to that server.

    To test it: create a simple SP on the linked server and a
    simple ASP page to call that ASP directly from the linked
    server. If this works, I would think that the sp with the
    linked query should work.
    HTH,
    John


    >-----Original Message-----
    >I don't think it is timing out from the stored procedure.
    The stored
    >procedure
    >runs in about 2 to 3 seconds. I can drop the stored
    procedure into a VB
    >app and it runs fine. The ASP page still doesn't work and
    I get a timeout
    >error.
    >
    >I'll try increasing the timeout settings though....
    >
    >"John Beschler" <giles@geewhiz.com> wrote in message
    >news:029a01c3681f$b4bc4ca0$a501280a@phx.gbl...
    >> Why would the message "script Timeout" lead yo to
    believe
    >> it's a permissions issue?
    >>
    >> In any case, that error means that the web server was
    >> waiting for the script (ASP) to finish running and
    return
    >> it's results to the ASP dll. It did not do that in the
    >> alloted time so the browser issued that error message.
    The
    >> quick, but not the best approach, is to extend the
    alloted
    >> time that scripts are allowed to run. The correct fix,
    is
    >> to determine why your stored procedure takes so long to
    >> run and then fix that.
    >>
    >> To extend the timeout for scripts you can either change
    >> the setting in the web server or add the ScriptTimeout
    >> Property of the Server object to your page.
    >>
    >> For example:
    >> Server.ScriptTimeout = 240
    >> set the timeout to 240 seconds.
    >>
    >> HTH,
    >> John
    >>
    >>
    >>
    >>
    >> >-----Original Message-----
    >> >I have an ASP calling a stored procedure to return a
    >> recordset. The stored
    >> >procedure quires
    >> >another server for part of the data being returned
    (using
    >> linked MS SQL 7
    >> >servers). The stored
    >> >procedure runs fine from with query analyzer, but I get
    >> this when calling
    >> >from within the
    >> >ASP page:
    >> >
    >> >error 'ASP 0113'
    >> >Script timed out
    >> >
    >> >If I comment out the lines in the stored procedure, it
    >> runs fine from within
    >> >ASP then. So I'm
    >> >thinking it must be some type of permission issue. Any
    >> ideas??
    >> >
    >> >Thanks
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    John Beschler Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139