Solutions 1:
OledbConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\test.mdb";OleDbConnection Conn = new OleDbConnection(OledbConnString);
if (Conn.State == Conn.Open)
{
Messagebox.show("Connection is Open");
}
else
{
Messagebox.show("Connection is Close");
}
No comments:
Post a Comment