Does SQL Server Compact Edition (SqlCe) have a SNAPSHOT table like Oracle Lite?
Posted
by MusiGenesis
on Stack Overflow
See other posts from Stack Overflow
or by MusiGenesis
Published on 2010-05-14T04:13:14Z
Indexed on
2010/05/14
4:24 UTC
Read the original article
Hit count: 341
sqlce
In Oracle Lite, you can create a SNAPSHOT table which is like a normal table except that it tracks changes to itself. The syntax is
CREATE SNAPSHOT TABLE tblWhatever ...
and you can perform CRUD operations on it like a normal table. To get the change information, you query the table like this:
SELECT * FROM tblWhatever + WHERE ...
which returns all the rows in the table (including deleted ones) meeting the WHERE clause, and you can access each row's row_state
column as a normal field (which is invisible to a normal SELECT * FROM tblWhatever WHERE ...
query).
Is there some way to do the same thing with Sql Compact Edition (3.5) - i.e. create a table that tracks changes without using RDA?
© Stack Overflow or respective owner