Recent

Author Topic: Connecting to AzureSQL  (Read 614 times)

Stag76

  • New Member
  • *
  • Posts: 42
Connecting to AzureSQL
« on: May 04, 2026, 10:09:40 am »
I'm currently using Lazarus 2.2.6, FPC 3.2.2 and ZEOSlib 7.2.14, using ntwdblib to connect to MSSQL DataBases
I now need to be able to connect to AzureSQL DataBases.
Which Versions of Lazarus and ZEOSlib are required for this connection, and what is the preferred connection method?

paweld

  • Hero Member
  • *****
  • Posts: 1616
Re: Connecting to AzureSQL
« Reply #1 on: May 04, 2026, 12:21:29 pm »
Zeos 8 and OleDB as the Protocol
Best regards / Pozdrawiam
paweld

Stag76

  • New Member
  • *
  • Posts: 42
Re: Connecting to AzureSQL
« Reply #2 on: May 05, 2026, 08:56:11 am »
Thanks for that.
Will I also have to upgrade to the current Lazarus Software from Version 2.2.6, FPC 3.2.2

paweld

  • Hero Member
  • *****
  • Posts: 1616
Re: Connecting to AzureSQL
« Reply #3 on: May 05, 2026, 10:16:20 am »
Quote from: Stag76
Will I also have to upgrade to the current Lazarus Software from Version 2.2.6, FPC 3.2.2
In general, I recommend using the most recent version of Lazarus/FPC, but it’s not required - Zeos 8 should work fine with FPC 3.2.2 and Lazarus 2.2.6
Best regards / Pozdrawiam
paweld

Stag76

  • New Member
  • *
  • Posts: 42
Re: Connecting to AzureSQL
« Reply #4 on: May 05, 2026, 12:53:06 pm »
Thanks again.

Stag76

  • New Member
  • *
  • Posts: 42
Re: Connecting to AzureSQL
« Reply #5 on: May 12, 2026, 08:49:03 am »
Is there anything to be aware of when installing multiple versions of Lazarus in separate folders on the same machine.

paweld

  • Hero Member
  • *****
  • Posts: 1616
Re: Connecting to AzureSQL
« Reply #6 on: May 12, 2026, 09:31:30 am »
Just make sure that each installation has its own configuration folder.
Best regards / Pozdrawiam
paweld

Stag76

  • New Member
  • *
  • Posts: 42
Re: Connecting to AzureSQL
« Reply #7 on: May 13, 2026, 06:41:52 am »
Thanks for that.

Up until now, I've been using the 32-bit versions of Lazarus, converting Data from very
old Interbase and FireBird (Version 1.5) DataBases to SQL Server.
Is this a reason to continue with the 32-bit versions, or is a switch to the 64-bit Version
compatible with these DataBases, and therefore preferable.

Thaddy

  • Hero Member
  • *****
  • Posts: 19156
  • Glad to be alive.
Re: Connecting to AzureSQL
« Reply #8 on: May 13, 2026, 06:57:38 am »
SQL server itself is a 64bit database. I would not stick to 32 bit.
objects are fine constructs. You can even initialize them with constructors.

Zvoni

  • Hero Member
  • *****
  • Posts: 3370
Re: Connecting to AzureSQL
« Reply #9 on: May 13, 2026, 08:58:12 am »
SQL server itself is a 64bit database. I would not stick to 32 bit.
The Database itself (as in: the actual Data-Files) is Bit-agnostic.

The Bitness matters for the Server-itself (the "program" offering the Database) and/or client libs accessing that Database

It doesn't matter if the Server itself runs on 64-Bit, but the clients on 32-Bit (or vice versa).

I know that from MySQL, where i actually did have the constellation of Server running 32-Bit, but the clients 64 Bit.
No issues whatsoever
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Thaddy

  • Hero Member
  • *****
  • Posts: 19156
  • Glad to be alive.
Re: Connecting to AzureSQL
« Reply #10 on: May 13, 2026, 09:53:46 am »
There are no issues, but you should not encourage legacy platforms.
And Windows 32 bit IS a legacy platform for over 10 years.
objects are fine constructs. You can even initialize them with constructors.

paweld

  • Hero Member
  • *****
  • Posts: 1616
Re: Connecting to AzureSQL
« Reply #11 on: May 13, 2026, 12:00:26 pm »
I’ve only recently switched to FPC x86_64. Until now, I’d been using the 32-bit version, though I occasionally did cross-compilation to 64-bit for certain projects. Until the switch, I didn’t notice any shortcomings with the 32-bit version, but eventually, due to the large number of components, the Lazarus IDE stopped compiling for me, and I had to switch to x86_64.

If you use 32-bit libraries in your projects, I wouldn’t switch. If you use resources from rc files in your projects, I wouldn’t switch either - there’s a bug in stable version, that’s fixed in the fixes and trunk branches.
Best regards / Pozdrawiam
paweld

Zvoni

  • Hero Member
  • *****
  • Posts: 3370
Re: Connecting to AzureSQL
« Reply #12 on: May 13, 2026, 03:24:06 pm »
There are no issues, but you should not encourage legacy platforms.
And Windows 32 bit IS a legacy platform for over 10 years.
Agreed.
And i don't "encourage" use of legacy-platforms.
I was just correcting a misconception.

I could even say, that the Database-Server itself doesn't care, if the clients run on 32-Bit Linux, 64-Bit Windows, 128-Bit MacOS or 1024-bit LCARS,
as long as they  follow the communcation-protocol
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Stag76

  • New Member
  • *
  • Posts: 42
Re: Connecting to AzureSQL
« Reply #13 on: May 14, 2026, 02:26:37 am »
Thanks for all the Advice.

I've only changed my operating Version of Lazarus when I've changed hardware, so am
unsure of the best way to update an existing installation.

Which is the recommended method.
  1 . Uninstall Current Version, then install the New Version in the same folder (C:\Lazarus).
  2. Create a Secondary Installation in a Different Folder.

Zvoni

  • Hero Member
  • *****
  • Posts: 3370
Re: Connecting to AzureSQL
« Reply #14 on: May 14, 2026, 08:22:08 am »
Second option
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018