sp_GetRecordCRC

Advantage SQL Engine

Calculates a 32-bit CRC value for a record.

Syntax

sp_GetRecordCRC(

TableName, CHARACTER, 256,

RecordNumber, INTEGER )

Parameters

TableName (I)

Name of the table. If using a free-table, this must be a fully qualified UNC path. If using a dictionary-bound table, this is just the tablename.

RecordNumber (I)

Record number in question.

Output

The sp_GetRecordCRC procedure will return a result set with 2 columns: CRCInteger and CRCString.

CRCInteger

Integer representation of the CRC value. This value should be cast to an unsigned long integer when used. If used as a signed long integer it may incorrectly show up as a negative value (like it will inside a result set grid in Advantage Data Architect).

CRCString

String representation of the CRC value.