connecting to ms access exception(ISAM)
TRYING TO ESTABLISH A CONNECTION TO ACCESS USING C# CODE CREATED AN EXCEPTION INSTALLABLE ISAM..CHANGING THE CONNECTION STRING TO "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +sourceFile + ";Extended Properties=\"Excel 8.0;HDR=NO;\""" PRODUCES A NEW EXCEPTION"Cannot update. Database or object is read-only."
PLZ HELP
virendra aPosted Jun 25, 2009, 5:28 AM
I guess there is a problem with your connection srtring.
Use Jet engine for connecting to MS-Access.Set your connection string as : "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\abc.mdb"
replace abc.mdb with your file name.
Just access this con string in your C# code and you will be through.