This page contains a list of Frequently Asked Questions for SQLite Data Access Components.
If you have encounter a question with using LiteDAC, please browse through this list first. If this page does not answer your question, refer to the Getting Support topic in LiteDAC help
Installation and Deployment
You may be having a compatibility issue that shows up in one or more of the following forms:
You can have such problems if you installed incompatible LiteDAC, IBDAC, SDAC, ODAC, PgDAC or MyDAC versions. All these products use common base packages. The easiest way to avoid the problem is to uninstall all installed DAC products and then download from our site and install the last builds.
The minimal configuration of client installation includes the following:
If you have purchased a full version of LiteDAC, you are entitled to distribute pre-compiled programs created with its use. You are not entitled to propagate any components inherited from LiteDAC or using LiteDAC source code. For more information see the License.rtf file in your LiteDAC installation directory.
You can create your own components that are inherited from LiteDAC or that use the LiteDAC source code. You are entitled to sell and distribute compiled application executables that use such components, but not their source code and not the components themselves.
All upgrades to future versions are free to users with an active LiteDAC Subscription.
The LiteDAC Subscription Program is an annual maintenance and support service for LiteDAC users.
Users with a valid LiteDAC Subscription get the following benefits:
Priority Support is an advanced product support program which offers you expedited individual assistance with LiteDAC-related questions from the LiteDAC developers themselves. Priority Support is carried out over email and has a two business day response policy.
The LiteDAC Subscription Program is available for registered users of LiteDAC.
Yes, you can. LiteDAC version licenses are perpetual.
An annual LiteDAC Subscription is included when ordering or upgrading to any registered (non-Trial) edition of LiteDAC.
You can renew your LiteDAC Subscription on the LiteDAC Ordering Page. For more information, please contact [email protected].
You can determine your LiteDAC version number in several ways:
The values of these properties are templates for query statements, and they cannot be manually executed. Usually there is no need to fill these properties because the text of the query is generated automatically.
In special cases, you can set these properties to perform more complicated processing during a query. These properties are automatically processed by LiteDAC during the execution of the Post, Delete, or RefreshRecord methods, and are used to construct the query to the server. Their values can contain parameters with names of fields in the underlying data source, which will be later replaced by appropriate data values.
For example, you can use the SQLInsert template to insert a row into a query instance as follows.
The value of the SQLInsert property will then be used by LiteDAC to perform the last step.
Setting these properties is optional and allows you to automatically execute additional SQL statements, add calls to stored procedures and functions, check input parameters, and/or store comments during query execution. If these properties are not set, the LiteDAC dataset object will generate the query itself using the appropriate insert, update, delete, or refresh record syntax.
The following questions usually arise from the same problem:
dbExpress technology serves for providing a more or less uniform way to access different servers (SQL Server, MySQL, Oracle and so on). It is based on drivers that include server-specific features. Like any universal tool, in many specialized cases dbExpress providers lose some functionality. For example, the dbExpress design-time is quite poor and cannot be expanded.
LiteDAC is a specialized set of components to access SQLite databases with advanced design-time and component interface similar to BDE.
We tried to implement maximal SQLite support in LiteDAC. dbExpress technology puts severe restrictions. For example, Unicode fields cannot be passed from the driver to dbExpress.
In some cases dbExpress is slower because data undergoes additional conversion to correspond to dbExpress standards.
To summarise, if it is important for you to be able to quickly adapt your application to a database server other than InterBase, it is probably better to use dbExpress. In other cases, especially when migrating from BDE or ADO, you should use LiteDAC.
This error occurs when the database is unable to determine which record to modify or delete. In other words, there are either more than one record or no records that suit the UPDATE criteria. Such situation can happen when you omit the unique field in a SELECT statement (TCustomDADataSet.SQL) or when another user modifies the table simultaneously. This exception can be suppressed. Refer to TCustomDADataSet.Options topic in LiteDAC help for more information.
Fields of this type are represented in Delphi by TLargeIntField objects. In some versions of Delphi, you cannot access these fields through the Value property (see the protected method TLargeintField.SetVarValue in the DB unit for details). To avoid this problem, you can change the field type to INTEGER, which is usually sufficient for key fields. Alternatively, you can avoid using Value.
Yes. There is no problem with using both LiteDAC and BDE functions in the same application.
© 1997-2012 Devart. All rights reserved.