Re: How to create editable recordset without using a database table?
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 15:48:47 -0500
John Dalberg wrote:
Is there a way to create a dataset in VBScript without doing a querySure. I call it an ad hoc recordset, although many refer to it as a
to a real table? Can I define the recordset's fields and types
through vbscript only?
I want to use the recordset for memory use only. I can't use database
tables or xml files.
The record set needs to be editable.
disconnected recordset (which IMO is a different thing).
Quick example:
const adInteger=3
const advarchar=200
set rs=createobject("adodb.recordset")
with rs.Fields
.Append "col1",adInteger
.Append "col2",advarchar,200
End With
rs.open
rs.AddNew
rs(0)=258
rs(1) = "test"
rs.Update
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- How to create editable recordset without using a database table?
- From: John Dalberg
- How to create editable recordset without using a database table?
- Prev by Date: How to create editable recordset without using a database table?
- Next by Date: Re: How to create editable recordset without using a database table?
- Previous by thread: How to create editable recordset without using a database table?
- Next by thread: Re: How to create editable recordset without using a database table?
- Index(es):
Relevant Pages
|
|