ReturnsRecords Property

See Also   Applies To

Sets or returns a value that indicates whether an SQL pass-through query to an external database returns records.

Syntax

VOIDSetReturnsRecords(BOOL bFlag );

BOOLGetReturnsRecords(VOID);

Parameters

Type Argument Description
BOOL bFlag TRUE if a pass-through query returns records.

Remarks

Not all SQL pass-through queries to external databases return records. For example, an SQL UPDATE statement updates records without returning records, while an SQL SELECT statement does return records. If the query returns records, set the ReturnsRecords property to True; if the query doesn't return records, set the ReturnsRecords property to False.

Note You must set the Connect property before you set the ReturnsRecords property.