AW: [ASP] RS.recordCount
Thomas Bandt
activeserverpages at glengamoi.com
Tue, 21 Dec 2004 23:16:12 +0100
> > Nee, das ist Quatsch.
>
> Nicht ganz!
>
> If you have done a recordcount on the rows in your database I
> bet you are wondering how there
> could be -1 records in your database. The simple answer is
> that there can't be - 1. The problem is
> that you have used the wrong cursor. As all the records of
> the database have to be stepped
> through and then the cursor has to be returned to the
> beginning of the recordset, the default
> which is the forward only cursor won't work. The simple
> solution is to use a more dynamic cursor
> rather than a forward only cursor.
>
> Quelle: http://www.codefixer.com/tutorials/recordcount.asp
Ist ja auch richtig und nichts neues, siehe vorangegangene Postings. Aber
genau das widerlegt auch den Quatsch mit der Schleife, die man erst selber
laufen muss.
Gruß, Thomas
_____________________________________
http://blogs.dotnetgerman.com/thomas/