lazarus/examples/mssql
maxim 141212d457 Merged revision(s) 65314-65316 #e5315cc4d3-#e5315cc4d3, 65336-65338 #b8af100318-#b8af100318 from trunk:
Examples/address_book: Fix compilation. Remove hard-coded MS font.
........
Examples/bidi: Fix layout issue due to overlapping controls.
........
Examples/dblookup: Fix compilation.
........
examples: Remove a writeln from checkbox demo.
........
examples: Fix typo in TestAll demo.
........
examples/mssql: Fix compilation
........

git-svn-id: branches/fixes_2_2@65457 -
2021-07-15 20:57:26 +00:00
..
dbform.lfm Merged revision(s) 65314-65316 #e5315cc4d3-#e5315cc4d3, 65336-65338 #b8af100318-#b8af100318 from trunk: 2021-07-15 20:57:26 +00:00
dbform.pas Merged revision(s) 65314-65316 #e5315cc4d3-#e5315cc4d3, 65336-65338 #b8af100318-#b8af100318 from trunk: 2021-07-15 20:57:26 +00:00
dbloginform.lfm
dbloginform.pas
mssqlconnsample.lpi Examples: Use '/' as path delimiter in project settings. Works also on Windows. Issue #35524. 2019-05-06 11:32:58 +00:00
mssqlconnsample.lpr
README.txt

Example program for the MS SQL Server and Sybase connectors in Lazarus.


These connectors require the FreeTDS shared library (dblib.dll/.so/.dylib), which at least on Windows requires libiconv2.dll for UTF8 support.
These can be downloaded via www.freetds.org and are provided by a lot of Linux distributions.
As a courtesy, FreePascal has a downloadable version for Windows at:
ftp://ftp.freepascal.org/fpc/contrib/windows/

The program will ask you for a database type (Sybase or MS SQL Server), username, password, server etc. and then connect.
Then it will query the server for database server information and show the results in a dbgrid.

It demonstrates:
- enabling/disabling connections in code
- getting database data into a dbgrid
- using modal forms
- getting combobox values
- handling database errors
- terminating a program

Works for me on Windows Lazarus/FPC trunk x86.

More databae functionality and techniques are shown in the LazDataDesktop project in the <lazarusdir>\tools\LazDataDesktop directory.
Reinier Olislagers, 31 March 2012