?
=?iso-8859-1?Q?Vicente_Garc=EDa?=
Hi all,
I would like to connect my ASP .NET 2.0 site to a DB2 database but I don't know how I could do that and I don't find a correct provider
For instance if I want to connect my site with Access I do the folling in my code file:
Imports System.Data.OleDb
...
Dim DBConnection As OleDbConnection
Dim DBCommand As OleDbCommand
Dim DBReader As OleDbDataReader
Dim SQLString As String
DBConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/basedatos.mdb")
DBConnection.Open()
SQLString = "SELECT * FROM Nombres"
DBCommand = New OleDbCommand(SQLString, DBConnection)
DBReader = DBCommand.ExecuteReader()
DBReader.Close()
Could anyone please tell my how to connect my application to DB2, pleaseeee
Thanks in advance,
Vicente
I would like to connect my ASP .NET 2.0 site to a DB2 database but I don't know how I could do that and I don't find a correct provider
For instance if I want to connect my site with Access I do the folling in my code file:
Imports System.Data.OleDb
...
Dim DBConnection As OleDbConnection
Dim DBCommand As OleDbCommand
Dim DBReader As OleDbDataReader
Dim SQLString As String
DBConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/basedatos.mdb")
DBConnection.Open()
SQLString = "SELECT * FROM Nombres"
DBCommand = New OleDbCommand(SQLString, DBConnection)
DBReader = DBCommand.ExecuteReader()
DBReader.Close()
Could anyone please tell my how to connect my application to DB2, pleaseeee
Thanks in advance,
Vicente