Difference between revisions of "Lazarus DB Faq"

From Lazarus wiki
 
(42 intermediate revisions by 18 users not shown)
Line 1: Line 1:
 
{{Lazarus DB Faq}}
 
{{Lazarus DB Faq}}
__TOC__
 
== General ==
 
  
This FAQ will be directed to database programming with Lazarus.
+
{{Infobox databases}}
  
=== Where can I find more FAQ? ===
+
This is a list of Frequently Asked Questions (FAQ) regarding database programming with Lazarus.
  
See the official website www.lazarus.freepascal.org. There is another FAQ as well. [[Lazarus Faq|Here]] you will find a copy of the FAQ from www.freepascal.org .
+
=== Where can I find more information? ===
 +
Databases:
 +
* See [[Databases]] and the articles about using databases/SQLQuery.
  
 
=== Where can I find database components? ===
 
=== Where can I find database components? ===
 +
At the moment the SQLdb components are part of FPC and Lazarus. They are installed by default in all more or less recent Lazarus versions.
  
At the moment the SQLdb components are part of the Lazarus package, you only need to install them. If you look in the [$LazarusDir]/components you will see a subdirectory SQLdb. Install the sqldblaz.lpk and you will be able to connect to MySQL, Interbase / Firebird and Postgres servers.
+
Manual installation: if you look in the [$LazarusDir]/components you will see a subdirectory SQLdb. Install the sqldblaz.lpk and you will be able to connect to MySQL, Interbase / Firebird, Postgres, MS SQL and Sybase ASE (if you have FPC 2.6.1+), Oracle servers.
Look [[Install Packages|here]] for help on installing packages.
+
See [[Install Packages]] for help on installing packages.
  
=== Are there other components? ===
+
=== Supported databases ===
 +
* See [[Lazarus Database Overview]] for a list of what databases are supported by SQLDB.
  
Yes. The [http://zeoslib.sourceforge.net/index.php ZEOS components] have been ported to Lazarus as well. You have to download ZEOSDBO_Rework from [http://sourceforge.net/cvs/?group_id=35994 ZEOS cvs].
+
=== Known issues ===
 +
* See [[fcl-db#Known%20issues/shortcomings]]
  
== IB / FB ==
+
=== Are there other components? ===
 
+
* See [[Lazarus Database Overview]] for a list of what databases work with what components.
=== How do I connect from Linux to a Windows server ===
 
Entering the correct path to a database on a Windows server from a Linux client is not very clear.
 
 
 
Say you have installed firebird in F:\Program Files\firebird\. The employee.fdb example database will then be installed in the directory F:\Program Files\firebird\examples\ . The IP-adress of your computer is 192.168.2.100.
 
  
Then entering the following databasename 
+
=== Lazarus and FPC documentation ===
192.168.2.100:F:\Program Files\firebird\examples\employee.fdb
+
The Lazarus visual database controls use FPC database code. Please see [http://www.freepascal.org/docs-html/fcl/sqldb/index.html SQLDB documentation] for more information.
in your IBConnection will connect to the required database.
 
  
Note that you don't have to enter a value for the hostname property!
+
Background info on SQLDB: [[SqlDBHowto]]
  
== MySQL ==
+
More info on TSQLQuery: [[Working With TSQLQuery]]
  
=== Which version of mySQL is supported? ===
+
=== Lazarus documentation ===
 +
* Some information on the interaction between the various FPC and Lazarus components: [[SQLdb Programming Reference]]
  
If you use the SQLdb components you will need the client libraries for mySQL 4.0. With this libraries you can connect to mySQL 3.2x and 4.x servers.
+
[[Category:Databases]]
 +
[[Category:FPC]]
 +
[[Category:Lazarus]]
 +
[[Category:FAQs]]

Latest revision as of 11:59, 15 August 2016

Deutsch (de) English (en) español (es) français (fr) italiano (it) 日本語 (ja) português (pt) русский (ru) slovenčina (sk) 中文(中国大陆)‎ (zh_CN)

Databases portal

References:

Tutorials/practical articles:

Databases

Advantage - MySQL - MSSQL - Postgres - Interbase - Firebird - Oracle - ODBC - Paradox - SQLite - dBASE - MS Access - Zeos

This is a list of Frequently Asked Questions (FAQ) regarding database programming with Lazarus.

Where can I find more information?

Databases:

  • See Databases and the articles about using databases/SQLQuery.

Where can I find database components?

At the moment the SQLdb components are part of FPC and Lazarus. They are installed by default in all more or less recent Lazarus versions.

Manual installation: if you look in the [$LazarusDir]/components you will see a subdirectory SQLdb. Install the sqldblaz.lpk and you will be able to connect to MySQL, Interbase / Firebird, Postgres, MS SQL and Sybase ASE (if you have FPC 2.6.1+), Oracle servers. See Install Packages for help on installing packages.

Supported databases

Known issues

Are there other components?

Lazarus and FPC documentation

The Lazarus visual database controls use FPC database code. Please see SQLDB documentation for more information.

Background info on SQLDB: SqlDBHowto

More info on TSQLQuery: Working With TSQLQuery

Lazarus documentation