Programming => Databases => Topic started by: yusufc on August 01, 2010, 02:29:53 pm

Title: Lazarus + MAC + MSSQL
Post by: yusufc on August 01, 2010, 02:29:53 pm
Hello to all Lazarus Forum members,
I am a Delphi programmer and I'm new in Lazarus.

I want to connect a MSSQL SERVER on Windows Server FROM MacBook Pro by using Lazarus.

My lazarus version is :
FPC versiyon is : 2.2.4
Zeos Access components are installed.

How can I connect to MSSQL database ?
Which component should I use ?

Thank you for your response, have a nice day.
Title: Re: Lazarus + MAC + MSSQL
Post by: michaelthuma on August 01, 2010, 08:59:43 pm
Afik this is pain under Linux or Apple. Wrong database imho. JDBC works. Microsoft does not ship a client for linux or apple - so what remains somehow is the Sysbase/MSSQL drivers for SQL Server 6.5 - but at least this works somehow.

Try it via ODBC ...

And there are solutions if you integrate the SQLServer connection into Filemaker, however this works then.

Some clarification - ODBC is not a bad idea at all, it works under Linux too and is an open standard (beleive it or not). Some driver families allow the client to talk via TCP directly (no need to install a client software). This approach will come ... so feel free to go this way in case of client server.

I personally do it little different but maybe this is little to much, I use a middleware.

If you find something better please let us know.
Title: Re: Lazarus + MAC + MSSQL
Post by: yusufc on August 02, 2010, 12:00:26 am
Thank you michaelthuma.
I tried Actual ODBC driver, yes it is working good, but Actual ODBC company wants 29.95 USD for EACH Computer.
I will write a small program for taking some records from SQL server and about 500 users will use this program in our company.
And I must pay USD 14.975 as totaly. This is unacceptable for me.
I think OPEN database connectivity is NOT OPEN :)

FreeTDS is very comlex for me because I'm new in Mac.

I must find a solution but how ? I'm searching internet since 2 weeks for a solution.
Title: Re: Lazarus + MAC + MSSQL
Post by: michaelthuma on August 02, 2010, 09:58:21 am

It is an open standard but for sure not free;-). Beside this. I understand you pain. You have 500 Macs? Cool.

If you want to stay with Client Server then you will require at least an ODBC to ODBC bridge (here the client library resides on the serverside) - I only know such things under Linux (OpenAccess).

If you have Oracle DB you can pass connect the SQL Server to the Oracle DB ... (a fried of mine is doing it this way).

Away from this - beside plain socket communication there is maybe a simpler way via a webserver in plain XML (webservice or cgi) - if you just need a few records. --> I know it is not the same.


Title: Re: Lazarus + MAC + MSSQL
Post by: ahmetnurideniz on August 13, 2010, 11:26:31 pm
you can use firebird for your projecet. it is free, cross platform db. i use it more then 5 year for my Mrp program. Delphi + ibx + Firebird. I have no problem with Firebird.
you can download it from here. Zeos can work whith firebird.
Title: Re: Lazarus + MAC + MSSQL
Post by: michaelthuma on August 13, 2010, 11:32:53 pm
I think he does not have the choice:-).
TinyPortal © 2005-2018