c# - Identify If Access database having ReadOnly Permission -
-
Messages that are open for the Axas database "This database has been selected to read only ".
-
When we connect to OleDbconnectio using the C # .net application, it gives the error for the DB .. Updating the "Operation Update Useful query must be used. "
-
I just want to prompt the user with the read-only permission to access DB in the Access database. We can add code in C # .net to read the ODB database only to read permission.
Thanks
You can use FileInfo
fileinfoF = new fileinfo (@ "C: \ MyDB.ACADB"); If (f.IsReadOnly) {Console.WriteLine ("File is read-only"); } Else {Console.WriteLine ("File is not read-only"); }
Comments
Post a Comment