
April 21st, 2003, 03:15 AM
|
|
Registered User
|
|
Join Date: Apr 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
problem with oledb Connection
i have an access database and i'm trying to access it using the oledb properties. here is my procedure:<br><br>head of the page: <br> import Namespace="System" <br> import Namespace="System.Data" <br> import Namespace="System.Data.OleDb" <br><br><br>My Procedure<br> <br> If Not Page.IsPostBack Then<br> Dim Conn As OleDbConnection<br> Conn = New OleDbConnection("Provider= Microsoft.Jet.OleDB.4.0;DSN=db1")<br> Conn.Open()<br> <br> Dim mCommand = New OleDbCommand("Select * From mytable", Conn)<br> <br> Dim dr As OleDbDataReader<br> mCommand.Execute(dr)<br> <br> DataGrid1.DataSource = dr<br> DataGrid1.DataBind()<br> dr.Close()<br> conn.Close()<br> <br> <br> End If<br> End Sub<br><br>In the navigator:<br>Pilote ISAM introuvable. <br>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br><br>Exception Details: System.Data.OleDb.OleDbException: Pilote ISAM introuvable.<br><br>Please Help
|