BaseSQLOldBehavior: boolean = False;
The BaseSQL property is similar to the SQL property, but it does not store changes made by the AddWhere, DeleteWhere, and SetOrderBy methods. After assigning SQL text and modifying it by one of these methods, all subsequent changes of the SQL property will not be reflected in the BaseSQL property. This behavior was changed in SDAC 126.96.36.199. To restore old behavior, set the BaseSQLOldBehavior variable to True.