I want to access database from current directory.
i have developed a application using MS Access database.
so what will be connection string for database connection.please do solve this problem.
thanking you.
Let's say your database is in Root folder then your connection string should be something like this
public string constr= "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" + Path.GetFullPath(Application.StartupPath + "\\..\\..\\Access.mdb"
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.