Luis wrote:
Hi,
I ´m looking for a native driver to connect from C# to the iseries ?
Some that not need the Client access to be installed ?
I have an MS Access application that connects to our i series using:
Microsoft ActiveX Data Objects 2.8 Library
IBM OLE DB data access provider
I think you are correct about Client access, except that installing Client
access may be one way to get the IBM OLE DB and other drivers
see Chris Peters and Brian Singletons i5/OS and Microsoft Office
Integration book as one possible source of info
The Access application transfers data to DB2 using VBA code like:
Dim cmdHost As New ADODB.Command
Dim cnnHost As New ADODB.Connection
Dim rstHost As New ADODB.Recordset
Dim AdoErr As ADODB.Errors
Dim vntHostFields As Variant
Dim aryHostValues(6) As Variant
Dim db As DAO.Database
Dim rstUpload As DAO.Recordset
Set db = CurrentDb
Set rstUpload = db.OpenRecordset("qryAccessTbl")
cnnHost.Open "provider=IBMDA400;Data Source=MyServer.MyDomain.COM;"
Set cmdHost.ActiveConnection = cnnHost
cmdHost.CommandText = "somelib.myfile()"
cmdHost.CommandType = adCmdTable
cmdHost.Properties("Updatability") = 7
Set rstHost = cmdHost.Execute()
vntHostFields = Array("FIELD1", "FIELD2", "FIELD3")
While Not rstUpload.EOF
With rstUpload
aryHostValues(0) = !FIELD1
aryHostValues(1) = !FIELD2
aryHostValues(2) = !FIELD3
End With
As an Amazon Associate we earn from qualifying purchases.