DBAS400Connector 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DBAS400Connector --version 1.0.0
                    
NuGet\Install-Package DBAS400Connector -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DBAS400Connector" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DBAS400Connector" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DBAS400Connector" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DBAS400Connector --version 1.0.0
                    
#r "nuget: DBAS400Connector, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DBAS400Connector&version=1.0.0
                    
Install DBAS400Connector as a Cake Addin
#tool nuget:?package=DBAS400Connector&version=1.0.0
                    
Install DBAS400Connector as a Cake Tool

DBAS400Connector

TheDBAS400Connector NuGet package enables .NET applications to connect to IBMiSeries or IBM Power systems running the OS400 operating system via ODBC. Thispackage simplifies interaction with DB2 databases, allowing developers toexecute non-query statements and retrieve data through various methods.

Keyfeatures of the DBAS400Connector include:

  • Non-Query Execution: Execute SQL commands that do not return results, such as INSERT, UPDATE, and DELETE statements.

  • Data Retrieval: Obtain data from the database in multiple formats, including:

With thesecapabilities, the DBAS400Connector makes it easier for .NET developers to workwith DB2 databases on IBM iSeries systems, enhancing productivity andsimplifying database interactions.

Obtainingthe IBM i Access Client Solutions ODBC Driver

The IBM iAccess ODBC drivers can be downloaded from the following IBM site as long asyou have an account to log in to the IBM download site.

https://www.ibm.com/support/pages/ibm-i-access-client-solutions

There is anODBC driver available that runs on Windows, Linux, MacOS and there is also anative IBM i ODBC driver available.

SampleIBM i ODBC Connection String

In order touse this connection string you must already have the IBM i Access ODBC Driverinstalled on your Windows, Linux or Mac computer.

How to usethe connection

using DBAS400Connector;

usingSystem.Data;

usingSystem.Data.Common;

DB2Connector connector= new DB2Connector();

// Connectto system using only ODBC Driver Name, system IP or system name, user andpassword instead of connection string

Boolean iSeriesConnected= connector.OpenConnection("iSeries Access ODBC Driver","192.168.0.1","usr01", "Pa$$word");

// ExecuteSQL query to results DataTable

DataTable _mytable= DataTable();

If(iSeriesConnected)

{               _mytable  = _ connector.ExecuteQueryToDataTable("SELECT * FROM QIWS.QCUSTCDT");

// Iterate and output desired columns toconsole

foreach(DataRow _row in _mytable.Rows)

{

Console.WriteLine($"Cusnum:{_row["CUSNUM"]}Lastname:{_row["LSTNAM"]} Init:{_row["INIT"]}");}

}

SampleIBM i Connection Strings

https://www.connectionstrings.com/ibm-i-access-odbc-driver/

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.4 92 9 days ago
1.1.3 118 a month ago
1.1.2 113 a month ago
1.1.1 120 a month ago
1.0.0 134 a month ago