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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -