General: Requirements
on software: sqlFree was developed for jre1.3 but
should also work under jre1.2.2.
Configurationfiles can generally be found in sqlFree/cfg.
All below mentioned files can be found in there.
Output and logging is redirected to sqlFree/log by
default.
Configuration:
To run sqlFree from your commandline or Fileexplorer the only
setting to be done is to adjust your PATH. Afterwards sqlFree may be
starting by calling the appropriate batch (or shellscript).
|
cfg/setpath.bat: Here you only have to change the
environmentvariable PATH. You should complete the
PATH variable with the bin-directory location of
your java-installation. This file only has to be
modified if sqlFree is being run under Windows. |
|
cfg/setpath: In
this file you only have to change the
environmentvariable PATH. You should complete the
PATH variable with the bin-directory location of
your java-installation. This file only has to be
modified if sqlFree is being run under
Linux/Unix. |
Using different JDBC-Drivers:
To use sqlFree with different JDBC-Drivers just edit
the file sqlFree/cfg/setpath.bat
The environment-variable CLASSPATH has to be extended
with the appropriate jar-filenames. Restart sqlFree
afterwards and you should be able to use your own JDBC-Driver.
Shipped with the application you can find an Oracle-thin-driver and
a mySQL-driver. Feel free to put additional JDBC-drivers into your
classpath. Please refer to the appropriate sites to get the latest
versions of JDBC-drivers.
Registration:
|
Registration can be obtained at http://www.independencesoft.com
|
|
If you have
purchased a registrationcode just put the cryptic
looking line into the file sqlFree/cfg/license.sqlFree
|
|
Example: Only
"738;rYkftkcth28352fs52e43" should be
put into the file sqlFree/cfg/license.sqlFree.
|
configSqlFree.xml:
|
Defaultvalues and profiles may be defined in
this config-file. In the following you'll find an example
configuration XML-file. The explanation is attached where
needed. |
|
<?xml
version="1.0"?> |
|
<data> |
|
<display> |
|
<default> |
|
<login>anonymous</login> |
Defaultlogin. |
<pathtoodbcini>d:\\winnt\\odbc.ini</pathtoodbcini> |
File
for odbc-list. |
<protocollist> |
|
<protocol name='bridge'>jdbc:odbc:</protocol> |
Protocols
with |
<protocol name='mysql'
>jdbc:mysql:</protocol> |
name. |
</protocollist> |
|
<dbhostportlist> |
|
<dbhostport name='testdb' >Testdatenbank</dbhostport> |
Reference
to DB |
<dbhostport name='mysqlhome' >//localhost/mysql</dbhostport> |
with
unique name. |
</dbhostportlist> |
|
<driverclasslist> |
|
<driverclass name='bridge'>sun.jdbc.odbc.JdbcOdbcDriver</driverclass> |
Driver-class
with |
<driverclass name='mysql' >org.gjt.mm.mysql.Driver</driverclass> |
name. |
</driverclasslist> |
|
</default> |
|
<preconfigured> |
|
<config> |
|
<name>Access DB Test</name> |
Profilename. |
<login></login> |
Defaultlogin. |
<rmi></rmi> |
RMI-Server(opt). |
<protocol>bridge</protocol> |
References
to |
<dbhostport>testdb</dbhostport> |
named
entries in |
<driverclass>bridge</driverclass> |
default-section. |
</config>
<config>
<name>mySQL
DB Test</name>
<login>root</login>
<protocol>mysql</protocol>
<dbhostport>mysqlhome</dbhostport>
<driverclass>mysql</driverclass>
</config>
</preconfigured>
</display>
</data> |
|
|
|
<preconfigured>-section: You may specify
multiple config-blocks. The configured elements will be mapped to the appropriate fields in the GUI
where DB data can be specified. |
|
|
Preconfigured queries:
|
sqlStatements.sqlFree:
You can make predefined queries available by
putting them into this file. A user loading the
statements in the main
window will get these queries. Feel free to
use placeholders in these queries, too (have a
closer look at the Visual SQLBuilder-documentation).
|
|
[A
queryname]
--query with comments
--comments are optional
select * from
... and so forth
|
|