SqlINI ?

Discussion forum about all things SqlBase or SqlTalk
peraudun
Norway
Posts: 74
Joined: 05 Apr 2017, 12:04
Location: Norway

SqlINI ?

Post by peraudun » 11 Aug 2011, 11:22

Hi
I want to place sql.ini at users APPDATA directory.
Set sGAppData = VisDosGetEnvString( 'APPDATA' )
Set SqlINI = sGAppData || '\\sql.ini'

This is done before connection.
But I got error message : SQL.INI File Error
WIN32CLIENT :
WIN32CLIENT : No configuration file.

Jeff Luther

Re: SqlINI ?

Post by Jeff Luther » 11 Aug 2011, 18:22

I suggest you leave SQL.INI right where it got installed when you installed TD. Users don't need to know about SQL.INI -- they won't be changing settings, that's your job and the admin's job when you set up your client/server application + DB. That file is 'internal' to TD and SQLBase and router settings for that only.

If you need your users to have an INI file that you and they can use and modify, create your own and use the SalGet/SetProfileXXX functions for managing it, getting values out of it, writing to it from your TD app, etc. See TD help for more details on those functions, like SalGetProfileString().

peraudun
Norway
Posts: 74
Joined: 05 Apr 2017, 12:04
Location: Norway

Re: SqlINI ?

Post by peraudun » 12 Aug 2011, 06:33

That wont help us, because we need to update SQL.INI between releases.
I will try with keeping sql.ini where it is installed and set ie

Set SqlINI = sGAppData || '\\localsql.ini'

And see if that helps.

Regards
Per Audun

Return to “SqlBase General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests