I have a C# application that interacts with an Access database.
When I execute an OleDbCommand
object to ALTER
a table and ADD
a new column, I receive an error:
OleDbException: The database engine could not lock table because it is already in use by another person or process.
While I can manipulate my data successfully. However when I execute the query directly in the MS Access, it works correctly.
Note: my database is closed and no person or process is using it.
How can I resolve this?