Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: vbscript and oracle connection freezing.

Re: vbscript and oracle connection freezing.

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Sat, 17 May 2003 00:30:42 +0100
Message-ID: <grsacv8tnbune4s8mdehfm3uml9tdv2ts4@4ax.com>


On 16 May 2003 16:11:31 -0700, bigbinc_at_hotmail.com (bigbinc) wrote:

> 'Create an ADO recordset object
> Set rsDistance = Server.CreateObject("ADODB.Recordset")
> strSQL = "SELECT * FROM DORSEY.REHABTAB ORDER BY OBJECTID"
>
> Do While not rsDistance.EOF
>
> Response.Write rsDistance(0).Value & "<br>"
>
> Loop

 You've created a recordset, set a variable to contain a bit of SQL, but not executed it, and you then go into an infinite loop waiting for an EOF that will never arrive. You at least need to:

(a) Execute the SQL.
(b) Have a rsDistance.MoveNext statement in the loop.

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Received on Fri May 16 2003 - 18:30:42 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US