which is better? (SQLTransaction-SQLQuery or Zcomponnet-ZEOSDBO) lazarus / 16-Databases ---------------------------------------------------------------------- aliboy · 2012-11-21 14:42 hi dear i am newbie in Lazarus but i  have good working experience in Delphi programming. i going to connecting to database (my sql) with Lazarus ,and i would like to understand which way is better (is standard-being easy not matter) to connect to DB? first way: SQLTransaction-SQLQuery-IBConnection-Datasource second way: Zcomponnet-ZEOSDBO thanks a lot ---------------------------------------------------------------------- SunyD · 2012-11-21 22:13 which is better? I don't really know. I"am using it with Delphi since more than 10 years. I like it and i prefere it on Lazarus too. I tried Lazarus components but don't liked, you have to take for every DB another Component. ZEOS has one Component (TZConnection) for all databases, easy to learn and you can change your DB on the fly. And Zeos has TZTable, TZTable is easy to you use "Tableeditor". Too many also profess. developers using it especially Delphi programmers. I think it is actuall and will be never dead-project. Install it test it. Take Version 7.x, They are working more on this version to make it release version. If you use ZEOS with Firebird and you have Autoinc-Fields than read this: http://www.firebirdfaq.org/faq29/ Read the part with TZSequence. You need need it for TZTable. I hope you understand something from my text. I have terrible english and i don't want check my errors. ( lazy ) good luck! ---------------------------------------------------------------------- anis2505 · 2012-11-21 22:27 Quote from: SunyD on November 21, 2012, 11:13:47 pm I tried Lazarus components but don't liked, you have to take for every DB another Component. On SQLDB there is also TSQLConnector (not TSQLConnection) that is a generic database connector. Never used it but I's there regards ---------------------------------------------------------------------- otorres · 2012-11-22 00:53 Personally i prefer Zeos, cause support IBEvents for Firebird. ---------------------------------------------------------------------- BigChimp · 2012-11-22 07:42 Quote from: otorres on November 22, 2012, 01:53:46 amPersonally i prefer Zeos, cause support IBEvents for Firebird. FPC trunk supports Firebird and PostgreSQL events as well since a while... ---------------------------------------------------------------------- aliboy · 2012-11-22 08:31 thank you for responses.  can you suggest me a useful tutorial for connecting to database?  thank you. ---------------------------------------------------------------------- anis2505 · 2012-11-22 08:55 Quote from: aliboy on November 22, 2012, 09:31:21 am thank you for responses.  can you suggest me a useful tutorial for connecting to database?     thank you. The Wiki, you better start with it and maybe the only thing you will need. http://wiki.lazarus.freepascal.org/Category:Databases regards ---------------------------------------------------------------------- aliboy · 2012-11-22 14:49 hi dear, sorry,at previous post do not check preview so inappropriate smile was posted. thank you.