Hi Lars, this is a very relevant question indeed!
I guess the whole dilemma came out of the habit of using the .Net Framework driver provided by IBM and the frustration generated by the discontinuity / chargeable new drivers for .Net...
And of course you're right, now that I've replaced the DB2Connection with the System.Data.Odbc.OdbcConnection and got the connection string right, it works fine in my POC. I just have to check all the different database accesses to make sure there is no specific case that the OdbcConnection / OdbcCommand would not handle...
var connection = new OdbcConnection("Driver={IBM i Access ODBC Driver};System=[myTestSys];Signon=4");
=> https://www.ibm.com/docs/en/i/7.5?topic=details-connection-string-keywords
or for Fluent nHibernate:
var configuration = new Configuration()
;
configuration.DataBaseIntegration(x =>
{
x.ConnectionString = "Driver={IBM i Access ODBC Driver};System=[myTestSys];Signon=4";
x.Dialect<GenericDialect>();
x.Driver<OdbcDriver>();
});
Stephan
------------------------------
Stephan Ehret
------------------------------
Original Message:
Sent: Tue August 20, 2024 07:17 PM
From: Admin Service
Subject: .Net 8.0 drivers for DB2 for i
Pardon my ignorance. I don't understand the nuances of database access drivers.
Do you specifically need the .Net 8.0 drivers.
There are other database access drivers available with IBM i Access Client Solutions:
"The Windows Application Package component contains the ODBC driver, OLEDB provider, ADO.Net provider, ActiveX components, and API support ported from the older IBM i Access for Windows client."
ODBC Driver for IBM i Access Client Solutions
Original Message:
Sent: 8/20/2024 8:56:00 AM
From: Marius le Roux
Subject: RE: .Net 8.0 drivers for DB2 for i
this also explains the "two versions" best : https://github.com/linq2db/linq2db/issues/2473

------------------------------
Marius le Roux
Owner
MLR Consulting
Original Message:
Sent: Mon August 19, 2024 06:21 AM
From: Stephan Ehret
Subject: .Net 8.0 drivers for DB2 for i
Dear all,
so I've juste received a quote for D58B8LL -"IBM Db2 Connect Unlimited Edition for System i" to use the .Net 8.0 Net.IBM.Data.Db2 drivers installed through NuGet
=> 36 k€
Is that a joke?
Has anyone some feedback on this? Is that the right product? Is there anything cheaper that'll do the job?
Thank you in advance for your help (cause I don't know if I'm supposed to be angry, speechless or depressed!).
Stephan
------------------------------
Stephan Ehret
------------------------------