Closed isaacabraham closed 7 years ago
What version are you using? The latest?
This is probably Access error of the database file being locked while there are multiple connections open.
Latest version (1.0.35). I've made sure Access itself isn't open when working with the database - what should I do?
The problem occurs when SQLProvider closes the connection and tries to reconnect. That's why there are some exceptions in source code compared to other providers that Access connections are left open.
Don't understand :-( Wouldn't this mean that everyone using Access sees this error?
I think you're right though - basically until I actually do a "Send to Interactive" it's fine. But once FSI gets involved as well, it goes red when I start doing a few commands.
A .laccdb
file is also created after I open up the script that references the DB.
pinging @bennylynch on this one since he wrote the access implementation and is still being used as far as I understand..
Ok, the problem here is:
Unknown Error
s.This should be working better now, @isaacabraham can you test do the problem still exists?
Trying out with an MS Access DB - connection string looks something like this: -
This actually worked once I installed the (correct version of) Access Database Engine.
However, after an unspecified period of time - and only after I start exploring the database in a script - the declaration of the TP breaks with the error
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Unspecified error'
. However, FSI continues to work - it's just in the script file that the error shows up.I've tried both 32 and 64 bit versions of the engine, and both VSCode and VS2015 - same error always occurs.
I'm not in a position to share the database out unfortunately, but am happy to help diagnose this problem if possible.