Quick Objects Documentation Akal Tech Logo
Database Configuration Setting (Connection String)

Glossary Item Box

Database is a configuration setting that is specified by adding a key in the Keys section of the AppSettings (.NET 1.1) or by adding a ConnectionStrings entry (.NET 2.0).  Database can be used to set the connection string that will be used by the BaseBusinessObject's to connect to the underlying database. In .NET 2.0 or later you

<connectionStrings> 
  <add name="database" connectionString="Server=.\SQLExpress;  
   Database=QO_Shop;User ID=MyUserName;Password=MyPassword;  
   User Instance=false;" providerName="System.Data.SqlClient" /> 
</connectionStrings> 
 Please note that the providerName attribute value is simply ignored. And you must specify the Database_Type setting or the Business Objects will assume SQL Server 2005 as the database server.

Please take a look at DBType Property for more information or see the DatabaseObject.DatabaseTypes Enumeration for a list of possible choices.

 If you like to use a different key/connection string name, you can set the ConnectionStringConfigName Property value on object initialization.