FileAdapter.CheckKey Method
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
Checks for the existance of a record with the provided key.
public void CheckKey(AdgKeyTable keyTable)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| AdgKeyTable | keyTable | The AdgKeyTable to check. |
Remarks
This operation can be used instead of the SeekKey operation (SETLL in RPG) when the operation is only utilized to see if a record is present in the file. While SeekKey positions the cursor close to the supplied key and sets the exact match flag, CheckKey only verifies if there is a record with the exact key provided. For large files on SQL Server, CheckKey is much faster than SeekKey.