database - Connect to IBM DB2 with .Net using only .dll reference -
I would like to connect to a DB2 database, especially an iSeries version, using .NET and C # .dll And not installing any software on the server We currently use IBM.Data.DB2.iSeries.dll , which is installed as part of iSeries Access for windows. I do not have to install all this. But apparently I have no choice because other providers IBM.Data.DB2.dll need to be installed before it works as per the stack overflow post:
Anyway in your code one. Is there any way to connect to DB2 from .NET c # code to referring to Dll and not installing other software on the server?
I know you can do this with Java and JET Open Toolbox () Why can not you do this with the net?
Here is a basic example that we are currently IBM. Data. DB2 How to use the ISROZ DLL
string Sql = "select 1 from SCHEMAX.TABLEX"; System.Data.IDbConnection Connection = Null; IDataReader Reader = Faucet; Try {Connection = new iDB2Connection (Configuration Manager.ConnectionTracing.conction String); Connection.Open (); Idb command command = connection.CreateCommand (); Command. Common Type = CommandType Text; Command.CommandText = sql; Reader = command.ExecuteReader (); } Finally {try} reader.Close (); } Hold (Exception Pre) {} Try {connection.Close (); } (
Thank you for your time, Velzi
My question was answered in the IBM Forum Here the answers are given here.
Answer 1: Hi Wellie, While I'm not familiar with the per-jpt open product, it is most likely a Type 4 JDBC driver, which There is a Java driver on the client side (as opposed to the old Type 2 JDBC driver, which requires non-Java component on the client). Being a Java driver, JT allows OpenGL to do what you are describing. Although the .NET driver is a more complex dependency structure, and, as such, both managed and unmanaged, many DLLs are required to be installed on the client. Also, connectivity to an iSeries server is available to be available on the client DB2 connected license would be required. Therefore, the minimum client installation that is required to support Net Connectivity in DB2 Server is the IMB Data Server driver (which is installed approximately 40 MB). IBM Data Server Driver is an independently distributed client package that can be downloaded from the IBM website However, as I mentioned above, to connect to an iSeries server, you will also need a DB2 connect license.
Regards, Alex
answer2: IBM.Data.DB2.iSeries.dll provider requires several other parts of IBM Eye Access to Windows Product For example, handling TCP / IP communication stack, security / logon handling, CCSID conversion, etc. It can not be copied or installed as a standalone DLL.
Comments
Post a Comment