Specifying a SQL statement at runtime
Go Up to Specifying the SQL statement to execute
There are three ways to set the SQL property at runtime. An application can set the SQL property directly, it can call the SQL property’s LoadFromFile method to read a SQL statement from a file, or a SQL statement in a string list object can be assigned to the SQL property.