connecting to mssql server lazarus / 16-Databases ---------------------------------------------------------------------- rcmz · 2021-07-31 17:28 hello to all, I searched the forum for this question and did not find anything helpful.  How can I connect to mssql server ?  TIA Ramiro ---------------------------------------------------------------------- nouzi · 2021-08-01 00:29 Use zeosdb ---------------------------------------------------------------------- rcmz · 2021-08-01 03:09 thx, do you have a sample project ? TIA Ramiro ---------------------------------------------------------------------- LacaK · 2021-08-03 05:54 To connect to MS SQL Server you can use either: native TMSSQLConnectionor TODBCConnectionboth components are placed on sqlDB tab in Lazarus IDE ---------------------------------------------------------------------- dseligo · 2021-08-03 08:14 Quote from: rcmz on August 01, 2021, 05:09:30 amdo you have a sample project ? I also use ZeosDBO for MSSQL. Put TZConnection on form or data module, set database, hostname, protocol and user properties in Object inspector. For protocol I use 'FreeTDS_MsSQL>=2005'. You'll also need library dll (try here: https://sourceforge.net/projects/zeoslib/files/3rd%20party/FreeTDS/). Then set Connected property to true - if there are no errors you are connected.