[Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

Andreas Schneider aksdb at gmx.de
Mon Jan 24 08:57:55 CET 2011


 On Mon, 24 Jan 2011 09:28:05 +0200, Graeme Geldenhuys wrote:
> Alternatively, add the SqlDB source path to your project, then when 
> you
> compile your project, it will compile the SqlDB code too - as if it 
> was
> part of your project source code.

 That  probably  won't work and will only cause trouble. He is probably
 using  the  LCL counterpart to sqldb (lazsqldb or however it's called)
 which  in  turn  uses  the FCL sqldb units. Since the signature of the
 ones  in  the project library path will not match the ones the LCL was
 compiled against, the compiler will complain and stop.

 But  the first solution you gave (recompiling the LCL [or just sqldb])
 and afterwards the respective lazarus package should work just fine.




More information about the Lazarus mailing list