If you're running queries against local tables (e.g. Paradox or dBASE) or you're letting BDE queries against remote tables, then you're limited to the SQL-92 subset that BDE supports.
This is documented in the LOCALSQL.HLP file, which is usually found in C:\Program Files\Common Files\Borland Shared\BDE.
Local SQL does support the SUBSTRING SQL function, but there are some caveats noted in the Help file. Specifically:
-- SUBSTRING can only be used with character columns or literals.
-- To use on values of other data types, the values must first be converted to CHAR using the CAST function.
-- The SUBSTRING function cannot be used with memo or BLOB columns.
If you're running queries against Oracle tables, you can circumvent these limitations by changing the SQLQRYMODE property of your alias to SERVER. By default, this is set to a blank value, which tell BDE to try to run queries locally and then run them on the server if those queries can't be run. By setting this property to SERVER, you by-pass that process and can improve overall performance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.