What is the difference between a Dynaset and Snapshot and
how would you create one?

Answer Posted / george

All Recordset objects are constructed using records (rows)
and fields (columns). There are five types of Recordset
objects:

Table-type Recordset ::
********************
representation in code of a base table that you can use to
add, change,or delete records from a single database table
(Microsoft Jet workspaces only).

Dynaset-type Recordset ::
**********************
the result of a query that can have updatable records. A
dynaset-type Recordset object is a dynamic set of records
that you can use to add, change, or delete records from an
underlying database table or tables.
A dynaset-type Recordset object can contain fields from one
or more tables in a database. This type corresponds to an
ODBC keyset cursor.

Snapshot-type Recordset ::
**********************
a static copy of a set of records that you can use to find
data or generate reports. A snapshot-type Recordset object
can contain fields from one or more tables in a database
but can't be updated. This type corresponds to an ODBC
static cursor.

Forward-only-type Recordset::
***************************
identical to a snapshot except that no cursor is provided.
You can only scroll forward through records. This improves
performance in situations where you only need to make a
single pass through a result set. This type corresponds to
an ODBC forward-only cursor.

Dynamic-type Recordset ::
**********************
a query result set from one or more base tables in which
you can add,change, or delete records from a row-returning
query. Further, records other users add, delete, or edit in
the base tables also appear in your Recordset. This type
corresponds to an ODBC dynamic cursor (ODBCDirect
workspaces only).

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c++ and visual basic?

729


How would you create Visual basic Document file?

2099


Can you tell me the properties of the controls?

1767


What is shortcut menu and explain "The ole control's shortcut menu".

772


How can you save and Get data from Clipboard/ Recordset object consists what?

751


Explain the "cursortype" and "Locktype" in VB?

4134


Is visualvm free?

861


What is the Windows API?

1210


What are the uses of List View Control?

1741


What is OLEDB?

2101


How do I get my application on top?

1137


How would you Create a Query Builder and Explain its uses

1644


How do you change the system menu (on the Control-Menu Box)?

1195


Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.

1920


What is the use of command Object?What are the various types of variables?

803