![]() |
| Support Home | Search | Documentation |
INFO: Differences between DataGate/400 for DB2/400 (DG400) and DataGate for SQL Server (DSS)The information in this article applies to:
SUMMARY:This article contains information regarding the Differences between DataGate for DB2/400 (DG400) and DataGate for SQL Server (DSS). STATUS:Current. MORE INFORMATION:NOTE: The information contained in this article is a "living" document. The contents contained in this preliminary document can be changed by ASNA at any time. Please make sure that you obtain the latest document for the most current information.This purpose of this information is to help you plan for SQL Server 2000 support. 1. - Object Considerations
* NOTE: For Max number of records per member, DataGate for Windows and Desktop Servers Release 7.2, Version 7.255 and higher support member/file sizes limit is 16 exabytes ( 2^4 * 2^60). 2. – Index (Keys) Considerations
3. – Data Access Considerations
4. – Locking Considerations
Record Locking
DataGate/400DB2/400 determines the type and duration of records locks depending on how the file was opened. For read-only files, when a record is read, there is no lock requested on it, and if some other application has the record lock, the reading application does not block on the lock, that is, the record gets read in-spite of being locked by somebody else. For files open for update, every time a record is read it is write-locked so that other updating applications can’t read it. The write lock is held until the record is updated or explicitly unlock by the application or when another record is read or positioned to. DSSDSS (using server cursors) also determines the locking characteristics bases on how the file is opened. For read-only files DSS behaves like DataGate/400, that is, there are no locks neither placed nor considered on records being read. The behavior of DSS when the file is opened for update is similar to DataGate/400 but with two significant differences: updating a record does not release the lock on the record and explicitly unlocking a record causes the ‘current record position’ to be lost. These differences bear the following considerations.
Loops involving SetLL/SetGT
and Read/ReadE/ReadPE should be recoded to use the Range operations. The most damaging change, is
the one requiring segments of code involving CHAIN-UPDATE combinations have to
be studied and possible modified.
Object Locking:
Not implemented yet on DSS 5. - Field considerations
Native SQL Server field interpretation:
The types Image, Text and NText are not supported.
Fields of these types are hidden from the file definition. To ensure future
application compatibility, you should not use files containing these fields,
instead you should create logical files naming the individual fields that your
application will manipulate, that way, if in a future release the fields
‘appear’, your application will not break. 6. – Join Considerations
7. – Calling Programs/Procedures
Considerations
X. – FAQ
Q. Will
DataGate for SQL Server require SQL Server client licenses for end Users or
will a server license be enough? A. Every
user will have to be licensed. There are
2 way of achieving this, one is to buy individual Per-Seat licenses, the other
is to buy a per-processor license. The following link will take you to the MS
prices as of Aug. 2001: http://www.microsoft.com/sql/howtobuy/pricing/default.asp. This is another good link with common
licensing questions: http://www.microsoft.com/catalog/display.asp?site=10145&subid=22&pg=4 Here is a
breakpoint list of the 2 different license models for Standard Edition: SQL Server 2000 Standard
Edition - purchase processor license if: Q. Will I
have to get a DataGate for SQL Server license or is a SQL Server licenses all I
need? A. You will
have to obtain DataGate license to access data stored in SQL Server. Q. Which
version(s) of SQL Server will be supported by DataGate for SQL Server? A. DataGate supports all
editions of SQL Server 2000 ( Q. Is the
Library List supported? A. Yes. Q. I have
an ADB database with files in the root library, how can I get them into SQL
Server? A. Use the CopyLibrary
option of Acceler8DB Database Manager, user ‘/’ for the Source library and a named
library for the target. Q. After
copying my libraries to SQL Server, are there new files identical to the
originals? A. Almost but not quite.
The main difference you will see is that most fields defined as BINARY in the
original files would appear as being ZONED.
The impact of this change in your AVR programs is only reflected when
the field is part of a Data Structure, in which case, the compiler will protest
the discrepancy in the definition of the field, i.e.: the program defines as
binary but the file as zoned. Q. What is
MSDE ? A. Go http://www.microsoft.com/sql/techinfo/development/2000/MSDE2000.asp
for a description of MSDE. The Addendum 1
is attached in case the link moves. Q. Given
that DSS imposes the format name (as an ‘R’ followed by the file name), do I
have to modify
all of my file record formats on the AS/400 to match the file and how will this
affect my AVR programs when referring to the old format name? A. If
you compile against ADB or DG400, you will be able to run against DSS even if
your format names are different. However
if you compile against DSS and your code refers to a format name which doesn't
match the one in DSS, then you can either change your references to it (lots of
work), or do a rename format in the DclDiskFile (little work). RNMFMT has been enhanced to
take a single parameter to indicate to AVR that this is the new name by which I
will be referring to the ONLY format in this DclDiskFile. If you don't rename the format, then AVR will
use whatever the database provided it with. Q. How are the printer files going to work if we cannot have
multiple record formats? A. Print
files are supported just like in ADB, that is, they can still be
multi-format. It is only data files the
ones that have to be single-format. Addendum 1: MSDE
Keywords: news, tips, tricks, DSS, SQL, DataGate, differences, planning |
Last Modified Date: 2/24/2006 10:38:40 AM
Copyright © 2005, 2006 ASNA Inc.
| Support Home | Search | Documentation |