winforms - how to disconnection access in my C# program? -


I tried to compress my Access 2007 database in such a way:

  System .Diagnostics.Process. Start (@ "C: \ Program Files \ Microsoft Office \ Office12 \ msaccess.exe", @ "c: \ Mydb.mdb / compact");  

In my C # program and I get this error:

You tried to open a database that was already opened by the user on the machine has gone. When the database is available, try again (error 3356)

I tried Conn.close () but still get error

thanks in advance

Check your Task Manager to see if you already have access to it. If you do, then close these examples and try again.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -