Applies to: every Clarion version with an ABC application and a SQL driver; the thread is from Clarion 11 times (2021) and names no version.
Problem
The dictionary's Owner attribute is set to a variable, !GlobalSQLConnectionString, so that server, login and password are not hard-coded. The question was where the program gives that variable its value and whether anything else has to be set. No template or extension was found for it.
Solution
- Assign the variable in the Global embeds, Program Setup. That is the earliest embed and the one that worked for the poster.
- The driver reads the variable when a table is opened, or in
FileManager.Init(). Assignments later than that (one poster had seen it in the frame window's Init) work only if no table opens first; a security sign-on can open a table very early, so the Program Setup embed is the safe place. - Keep the value outside the executable: one poster stores the connection string in the INI file through the global properties, which lets a tester and the customer's site change it without a rebuild.
Caveats
- Nothing else needs setting for the Owner; a Name attribute that is also a variable follows the same timing rule.
- Storing a password in an INI file is the poster's practice, not a recommendation of the thread.
Today (2026)
Unchanged: Program Setup is still before the first OPEN in a generated ABC program, and the driver still reads the owner variable at open time.
Sources: Steen M. (Feb 2021, the question), Oggy, J. F., Carl S. (Feb 2021) in softvelocity.clarion.databasedrivers.