Hello
Not sure if you want a connection string or what...
But below this is how you connect to a MS Access Database
string connString="Provider=Microsoft.Ace.OLEDB.12.0;DataSource=databasename.accdb";
public DataTable getAuthentication()
{
using (OleDbConnection con = new OleDbConnection(connString))
{
OleDbCommand cmd = new OleDbCommand("SELECT * FROM tableName", con);
DataTable dTable = new DataTable();
OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
adapter.SelectCommand = cmd;
adapter.Fill(dTable);
return dTable;
}
}
Then you can use the method somewhere...