![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Manual for RAD Studio 2009 (C++) » Using ElevateDB » Querying Database Objects |
// This example uses a query component that
// has already been created and opened
// called MyQuery
MyQuery->DatabaseName="SalesDB";
MyQuery->SQL="SELECT * FROM Information.Tables "+
"WHERE Name="+Engine->QuotedSQLStr("Customer");
MyQuery->Open();
if (RecordCount==1)
{
ShowMessage("The Customer table exists");
}
else
{
ShowMessage("The Customer table does not exist");
};// This example uses a database component that
// has already been created and opened
// called MyDatabase
if (MyDatabase->Execute("SELECT * FROM Information.Tables "+
"WHERE Name="+Engine->QuotedSQLStr("Customer"))==1)
{
ShowMessage("The Customer table exists");
}
else
{
ShowMessage("The Customer table does not exist");
};This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2026 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

