Introduction
There are two update modes in MS SQL 7.0:
– Direct update
– Deferred update
In comparison with MS SQL 6.5, MS SQL 7.0 uses In-place update method
with Direct update modes more frequently. It because Nullable fields
with fixed length are kept with their full length.
Look at my previous article:
https://www.databasejournal.com/features/mssql/article.php/1442311
There is no SET SHOWPLAN statement in MS SQL 7.0. There are
SET SHOWPLAN_TEXT and SET SHOWPLAN_ALL, but this statements
turns on SET NOEXEC ON, and you can see the showplan only
separately with the query execution.
There is no system table syslogs in MS SQL 7.0.
So this SQL statement:
|
will return error:
|
You may use the following undocumented command to view the log:
|
where dbid - is the database id, you can find this id in the sysdatabases
system table in the master database.
type - is the type of the output:0 - minimum information (operation, context, transaction id)
1 - more information (plus flags, tags, row length)
2 - very detailed information (plus object name, index name,
page id, slot id)3 - full information about each operation
4 - full information about each operation plus hexadecimal dump
of the current transactional log's row.by default type = 0
Direct update
You must not change the fields from the clustered index for Direct update.
It is the most effective method of modification. When it is used the data
changed on its physical place and only three rows will be written into the
transactional log.
Look at this (I want to illustrate this on the real example):
|
These are the results from my computer:
|
This is the example from my previous article (In-place update method
is used instead On-page delete/insert method in this case):
|
This is the results set:
|
Deferred update
Deferred update mode is used when the data integrity could be
corrupted if use direct update. For MS SQL 7.0 this update
mode is used when you change the fields from the clustered
index.
This is the example:
|
These are the results from my computer:
|
Literature
1. SQL Server Books Online.
2. INF: Frequently Asked Questions - Server
http://support.microsoft.com/support/kb/articles/Q195/7/60.ASP?LN=EN-US&SD=SO&FR=0
3. "How can I view the SQL Server log?"
http://www.ntfaq.com/ntfaq/sql38.html