Hi Richard,
Curious why you repeat the last two parameters ?
String _conn = "Driver={IBM i Access ODBC
Driver};System=1.1.1.1;Uid=user1;Pwd=pass1;CommitMode=0;EXTCOLINFO=1;CommitMode=0;EXTCOLINFO=1";
Cheers
Don
From: "Richard Schoen" <richard@xxxxxxxxxxxxxxxxx>
To: "midrange-l@xxxxxxxxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxxxxxxxx>
Date: 28/03/2024 09:23 AM
Subject: RE: Writing a PC program with SQL connectivity
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>
Install IBM ACS ODBC Drivers and you can use this class as a starting
point if you like:
https://github.com/richardschoen/IbmiOdbcDataAccess
Shows you an appropriate connection string to use.
Make sure to encrypt your ODBC connection string.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------
message: 1
date: Wed, 27 Mar 2024 14:45:40 -0400
from: <smith5646midrange@xxxxxxxxx>
subject: Writing a PC program with SQL connectivity
I'm not sure this is the right list for this. If not, let me know which
one is and I will repost it.
I have been asked to write a PC .exe program that will execute an SQL
statement on the IBM i and then exit with an appropriate return code based
on what it found. I know how to do all of this in C#.NET except I can't
seem to find what I need for the SQL connection piece.
I assumed that I needed a .dll installed and added into my program like I
need to do for MySQL connections. I found info saying that I needed
IBM.Data.DB2.dll. I googled it to search for a download site and found
https://www.ibm.com/support/pages/download-initial-version-115-clients-and-d
rivers. I downloaded IBM Data Server Driver Package (DS Driver). However,
it looks like it is going to install DB2 on my laptop not just the .dll
that I was looking for.
Can someone help point me in the right direction for this?
As an Amazon Associate we earn from qualifying purchases.