|
Hello,
I have a System DSN that points to a Microsoft Access Database. I'm running some VB code to get the records through my own utility. Anyhow, when I run the utility to execute the VB code, everything works fine.
Now, I have a Windows service that can run windows executables. When I run the same utility through this service, it does not work, I get the following errors:
Last error: ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
I am very confused how the utility can work when I run it directly, but doesnt work when I run it through the service. I'm guessing it may be a permissions / security issue. The Access Database is on a shared network drive. If anyone has any ideas, please let me know. Thank you.
|