Yes, I have tried IP-Adress, 127.0.0.1, 0.0.0.0 and the IP-Adress of the computer itself.
And I have tried all kinds of combinations of 32 vs 64-bit. I have tried older versions of dblib.dll.
I start to ask myself if I'm the only one who wants to use MS SQL Express in combination with FreePascal/Lazarus.
I'm using it, it is not because I want it, but I must to.
My Lazarus apps are 32-bit. I have found the exact dblib.dll+libiconv2.dll that works for me, all MSSQLs are installed as default instances (please, consult M$ site for the meaning of 'default instance').
The installation troubles that I usually have are:
Correct version of MSVCRT missing.
MSSQL was installed with the default collation, (then masterdb must be rebuilt with the exact collation needed).
Firewall doesn't allow client connections.