Hi all,
I've set up libraries that have SQL embedded in the Delphi code to handle modifying data in our main application database. The database is PowerFlex (or DataFlex) and while it supports views, it doesn't support things like stored procedures. So my libraries are set up as flexible core functions to do things like CreateTransaction, DeleteTransaction, etc. so that my programs never use SQL at all, and just use these high-level library functions.
But - that still leaves the SQL as strings in my code, and presumably in the final .exe, and from what I've read, this is bad. But nowhere have I found suggestion of a better way, aside from stored procedures.
What's the best practice here?
I've set up libraries that have SQL embedded in the Delphi code to handle modifying data in our main application database. The database is PowerFlex (or DataFlex) and while it supports views, it doesn't support things like stored procedures. So my libraries are set up as flexible core functions to do things like CreateTransaction, DeleteTransaction, etc. so that my programs never use SQL at all, and just use these high-level library functions.
But - that still leaves the SQL as strings in my code, and presumably in the final .exe, and from what I've read, this is bad. But nowhere have I found suggestion of a better way, aside from stored procedures.
What's the best practice here?