c# - Identify If Access database having ReadOnly Permission -



c# - Identify If Access database having ReadOnly Permission -

for acccess database open message "this database has been opended read-only".

for db when connect using c#.net application oledbconnectio ..at time of updating query give error "operation must utilize updateable query."

i want prompt user if db opened readonly permission in access database.. how can add together code in c#.net application identiy oledb database readonly permission.

thanks

you can utilize fileinfo

fileinfo f = new fileinfo(@"c:\mydb.accdb"); if (f.isreadonly) { console.writeline("file read only"); } else { console.writeline("file not read only"); }

c# ms-access

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -