Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Multiuser / Networking / October 2004

Tip: Looking for answers? Try searching our database.

Error opening db in service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 27 Oct 2004 22:47 GMT
Hi

My app is in vb.net but the backend db is access. I am posting my question
here as there is more access expertise here than in vb.net group.

Here is the problem; I am opening a connection on a shared access db as
below.

Conn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\\Server\f\Events Data\Events Data.mdb;User
Id=admin;Password=;")

Conn.open()

This works fine when used in a vb.net win app. The problem is that as soon
as I turn the app into a service or run it using windows scheduler I get
error on conn.open statement. 'The Microsoft Jet database engine cannot open
the file '\\Server\f\Events Data\Events Data.mdb'.  It is already opened
exclusively by another user, or you need permission to view its data.'.

Why would the db have a problem opening in a service compared with a normal
win app? How can I open the db in a service?

Thanks

Regards
Ron Hinds - 27 Oct 2004 22:51 GMT
> Hi
>
[quoted text clipped - 22 lines]
>
> Regards

Sounds like a permissions problem to the file/folder where the Access DB
resides. What is the Account the Service is running under? If it is System
account, create a dummy user account with full rights to the folder and the
DB file and run the Service under this account. Ditto with Scheduler.
John - 27 Oct 2004 23:13 GMT
The service is currently running as LocalSystem.

Thanks

Regards

> > Hi
> >
[quoted text clipped - 29 lines]
> account, create a dummy user account with full rights to the folder and the
> DB file and run the Service under this account. Ditto with Scheduler.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.