Author Topic: Connecting to AzureSQL  (Read 1054 times)

CharlyTango

  • Full Member
  • ***
  • Posts: 181
Re: Connecting to AzureSQL
« Reply #15 on: May 14, 2026, 10:21:29 am »
  2. Create a Secondary Installation in a Different Folder.

definitely the second option.
I never upgrade an existing version. When a new verion arrives or i need a testing environment an complete new installation is created in a different folder.
severeal installations with different purposes can easyly live beneath each other.
At leadt one remains untouched until the new one really works.

Have a look at fpcupdeluxe and the possibility to use defmods.ini in the new created folder, so you get a tailored Lazarus installation automatically.
Lazarus stable, Win32/64

Stag76

  • New Member
  • *
  • Posts: 45
Re: Connecting to AzureSQL
« Reply #16 on: May 16, 2026, 01:57:14 am »
If I'm creating a Version 4.6 instance of Lazarus separate to my current 2.2.6 Version, it it simply a matter
of specifying an empty folder (eg c:\Lazarus_AZURE) in the installation process, or are there other considerations.

Thausand

  • Hero Member
  • *****
  • Posts: 613
Re: Connecting to AzureSQL
« Reply #17 on: May 16, 2026, 02:03:21 am »
If I'm creating a Version 4.6 instance of Lazarus separate to my current 2.2.6 Version, it it simply a matter
of specifying an empty folder (eg c:\Lazarus_AZURE) in the installation process, or are there other considerations.
I not know if installer make take care for multiple configuration, wiki https://wiki.freepascal.org/Multiple_Lazarus

This important. Have make sure for backup old configuration for restore if need.
A docile goblin always follow HERMES.md

Stag76

  • New Member
  • *
  • Posts: 45
Re: Connecting to AzureSQL
« Reply #18 on: September 01, 2026, 05:27:47 am »
I'm trying to connect to an MSSQL DataBase using Lazarus 4.6 and Zeos 8, OLEDB method.
When I Connect, it errors with the following message:
Exception Class EZSQLException.
SQL Error OLEDB Error
SQL State IM002 Native Error 0.
Code 0 Message IID_IBDInitialize.initialize.

SQL State IM002 appears to relate to ODBC.
Do I have to install the ODBC Driver?

Stag76

  • New Member
  • *
  • Posts: 45
Re: Connecting to AzureSQL
« Reply #19 on: September 01, 2026, 10:36:31 am »
I fixed it by creating a .UDL file, enter the parameters, opening it in Notepad, and copying the Connection String into the DataBase parameter of the TZConnection.

 

TinyPortal © 2005-2018