RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TQuery.PSGetTableName Method

Returns the name of the dataset table that appears in generated SQL statements.

Pascal
function PSGetTableName: string; override;
C++
virtual __fastcall AnsiString PSGetTableName();

PSGetTableName returns the name of the underlying database table against which updates are applied when the provider's ResolveToDataSet property is false. This value is used for generating the SQL statements that apply updates. The generated SQL statements are subsequently executed by a call to PSExecuteStatement. 

If PSGetTableName does not return a table name, the provider must have an OnGetTableName event handler to supply this value. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!