Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Connection Establishment Problem
manish pandey
Jun 22 2013 10:33 AM
1k
Reply
Hello ,
Please help me ...
i am getting run time exception in this code. (Could not find installable ISAM.)
i m just trying to establish connection with my access database.
private void button1_Click(object sender, RoutedEventArgs e)
{
//MessageBox.Show(textBox1.Text.ToString());
OleDbConnection con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = E:\\Access\\test.mdb; Persist Security =false;");
OleDbCommand cmd = new OleDbCommand("select * from student", con);
con.Open();
OleDbDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
MessageBox.Show(dr["age"].ToString());
}
con.Close();
}
Please help me in this.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
WPF graphics issue - floodfill problem
Different types of Brushes in WPF?