Difference between revisions of "Database connection string"

From EHS Help
Jump to: navigation, search
(MSSQL)
(Partial re-write to remove other, un-used, drivers)
Line 1: Line 1:
 
{{ProductTopic|Technical|Instructions}}
 
{{ProductTopic|Technical|Instructions}}
  
 
{{TodoSC|Add connection options}}
 
  
 
The application server INI File contains two entries necessary to control the access to the database.
 
The application server INI File contains two entries necessary to control the access to the database.
Line 10: Line 8:
 
<code>
 
<code>
 
ConnectionType=MSSQL
 
ConnectionType=MSSQL
ConnectionString=ADO?AuxDriver=SQLOLEDB.1;Server=DBServer1;Database=BurnsInjury;UserID=burndbuser;Password=XXXXX
+
ConnectionString=ADO?AuxDriver=SQLMCLI10.1;Server=DBServer1;Database=BurnsInjury;UserID=burndbuser;Password=XXXXX
 
</code>
 
</code>
  
Alter the values in the string above to reflect your own installation as detailed below.
+
or
  
==Driver and AuxDrivers==
+
<code>
 +
ConnectionType=MSSQL
 +
ConnectionString=ADO?AuxDriver=SQLNCLI10.1;Server=DBServer1;Database=BurnsInjury;Integrated Security=SSPI
 +
</code>
  
The driver and auxillary driver are the first two options specified in the connection string. In the above example it is ''ADO?AuxDriver=SQLOLEDB.1'' which uses the SQL OLE DB driver that is part of ADO.
 
  
[[AquilaCRS]] has it's own, built in database drivers available.  We call this technology '''AnyDAC''' as it can connect natively to a host of database engines.  Our own MSSQL drivers are usually faster than using ADO.
+
Alter the values in the string above to reflect your own installation as detailed below.
 
+
===MSSQL===
+
*ADO?AuxDriverSQLNCLI10.1
+
*ADO?AuxDriver=SQLOLEDB.1
+
*AnyDAC?AuxDriver=MSSQL
+
 
+
===MySQL===
+
*AnyDAC?AuxDriver=MYSQL
+
 
+
===Interbase===
+
*IBX;
+
*AnyDAC?AuxDriver=IB
+
 
+
===Firebird===
+
*AnyDAC?AuxDriver=IB
+
 
+
==Server, Database and User==
+
  
Replace the values in the above connection string with your own Server, Database, UserID and Password parameters.
+
'''Driver and AuxDrivers'''
  
==Connection options==
+
The driver and auxillary driver is the ''ADO?AuxDriver=SQLNCLI10.1''' part of the connection string. In the above example it is ''ADO?AuxDriver=SQLNCLI10.1.1'' which uses the SQL Native Client.
  
===MSSSQL===
+
The following are your choices of drivers depending on what libraries you have available on the server:
  
===MySQL===
+
*ADO?AuxDriverSQLNCLI10.1 - ''SQL Native Client''
 +
*ADO?AuxDriver=SQLOLEDB.1 - ''ADO DB Driver''
 +
*AnyDAC?AuxDriver=MSSQL - ''No external driver needed, AnyDAC is a fast, built in SQL Server driver that can be used at any time''
  
===Interbase===
+
If you change any settings in the AquilaServer.ini file, the AquilaServer service must be restarted for the changes to take effect.
  
===Firebird===
 
  
===SQLite (local)===
 
  
 
[[Category:Admin Help]]
 
[[Category:Admin Help]]
 
[[Category:AquilaCRS]]
 
[[Category:AquilaCRS]]
 
[[Category:IBID]]
 
[[Category:IBID]]

Revision as of 17:53, 13 June 2016

This is a Technical Instructions topic


The application server INI File contains two entries necessary to control the access to the database.

Example database connection string

ConnectionType=MSSQL ConnectionString=ADO?AuxDriver=SQLMCLI10.1;Server=DBServer1;Database=BurnsInjury;UserID=burndbuser;Password=XXXXX

or

ConnectionType=MSSQL ConnectionString=ADO?AuxDriver=SQLNCLI10.1;Server=DBServer1;Database=BurnsInjury;Integrated Security=SSPI


Alter the values in the string above to reflect your own installation as detailed below.

Driver and AuxDrivers

The driver and auxillary driver is the ADO?AuxDriver=SQLNCLI10.1' part of the connection string. In the above example it is ADO?AuxDriver=SQLNCLI10.1.1 which uses the SQL Native Client.

The following are your choices of drivers depending on what libraries you have available on the server:

  • ADO?AuxDriverSQLNCLI10.1 - SQL Native Client
  • ADO?AuxDriver=SQLOLEDB.1 - ADO DB Driver
  • AnyDAC?AuxDriver=MSSQL - No external driver needed, AnyDAC is a fast, built in SQL Server driver that can be used at any time

If you change any settings in the AquilaServer.ini file, the AquilaServer service must be restarted for the changes to take effect.