|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: A function that returns a recordset |
From: |
Wouter |
Date: |
5/23/2000 12:37:31 PM |
IP: |
206.191.102.233 |
Hi,
I had the same problem so I used the following thechnique:
Create a function i.e. GetRecSet and pass the sql string and the DSN string for flexibility.
The function doesnt return a recordset but instead it returns an array which you can get with getrows.
This works really well and is fast too. In this way you can pass any kind sql search statement and your return value would be an array representation of the resulting recordset. Plus you can open and close the DB connection and the recordset within the function. |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|