CRecordset::GetTableName
The document is archived and information here might be outdated

CRecordset::GetTableName 

Gets the name of the SQL table on which the recordset's query is based.


const CString& GetTableName( ) const;

A const reference to a CString that contains the table name, if the recordset is based on a table; otherwise, an empty string.

GetTableName is only valid if the recordset is based on a table, not a join of multiple tables or a predefined query (stored procedure). The name is read-only.

NoteNote

Call this member function only after calling Open.

Show:
© 2016 Microsoft