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

Answer Posted / suresh

A dynaset-type Recordset object is a dynamic set of records
that can contain fields from one or more tables or queries
in a database and may be updatable. In an ODBCDirect
database, a dynaset-type Recordset object corresponds to an
ODBC keyset cursor.
Remarks
A dynaset-type Recordset object is a type of Recordset
object you can use to manipulate data in an underlying
database table or tables.
It differs from a snapshot-type Recordset object because
the dynaset stores only the primary key for each record,
instead of actual data. As a result, a dynaset is updated
with changes made to the source data, while the snapshot is
not. Like the table-type Recordset object, a dynaset
retrieves the full record only when it's needed for editing
or display purposes.

A snapshot-type Recordset object is a static set of records
that you can use to examine data in an underlying table or
tables. In an ODBCDirect database, a snapshot-type
Recordset object corresponds to a static cursor.
Remarks
To create a snapshot-type Recordset object, use the
OpenRecordset method on an open database, on another
dynaset- or snapshot-type Recordset object, or on a
QueryDef object.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create properties in ActiveX Control?

1702


Explain Types of DBCombo boxes?

775


What are the uses of List View Control?

1656


____ property is used to lock a textbox to enter a datas.

1365


What is meant by Establish Connection in RDO?

1883


What is the use of Visual Basic Document file?

2025


How many objects resides in ADO ?

1692


What is the use of Hyperlink control for DHTML applications?

1605


How to get freefile location in memory?

2284


How to load and unload child forms.

874


What is the difference between Msgbox Statement and MsgboxQ function?

1636


Explain about form creation in Visual Basic?

754


It possible to call OLEDB?s Features directly in VB without using any control?

1805


Give brief description about class?

1658


How do I add a form in visual basic?

696