home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Windows Service & an Access DB on a Netware Server

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2723
Discussions: 200,965, Posts: 2,379,620, Members: 246,332
Old July 27th, 2005, 11:52 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Jul 2003
Posts: 122
Windows Service & an Access DB on a Netware Server

So I have this aggrivating database that I need this service program to operate against. As a windows forms based app, the exact same code works. The obvious problem was that the service ran as 'SYSTEM' rather than my user ID. I changed the service to run as the same user that was running the forms based app... and it still doesn't work.

The message I get is:
The Microsoft Jet database engine cannot open the file '\\server\database.MDB'. It is already opened exclusively by another user, or you need permission to view its data.

My connection string is:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\server\database.MDB;Mode=ReadWrite;Jet OLEDB:System database=C:\data\system.mda;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False;User ID=id;password=password;"

Keep in mind that the same connection string works on the forms based application.

Any ideas?
wctyler is offline   Reply With Quote
Old July 29th, 2005, 10:22 AM     #2 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Make sure the permissions ( in the ACL) for the user account you are using to open the file has sufficient rights to open the file, read, write, etc....
Iturea is offline   Reply With Quote
Old July 29th, 2005, 10:29 AM     #3 (permalink)
Member
 
Join Date: Jul 2003
Posts: 122
Turned out that even when I specify an account for the service to run under, it doesn't authenticate to NDS. I downloaded an API from Novell that lets me call a LoginNDS() subroutine that will log the process into NDS and let me get to the file.
wctyler is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server 2003 trial & XP BluesMan1 Applications and Operating Systems 4 December 22nd, 2004 01:58 PM
Setting up an FTP Server using Windows XP & a Netgear DG814 Router shepwad Networking and Internet 4 October 10th, 2003 04:34 AM
IPCop & Windows 2000 Server Advice implexant Networking and Internet 9 March 24th, 2003 05:07 PM
Changing Time on Netware 5 Server ribster Technical Support 2 February 6th, 2003 04:25 AM
Windows XP & Remote Access. Fujiiro Applications and Operating Systems 2 July 27th, 2002 05:54 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Forty-six years ago today (5)
Is It Just Me? (3006)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (10)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows 7 problem (7)
windows vista security holes (14)
Point and Shoot Camera Suggestions. (6)
Is the PSU I received dead? (13)
radeon x850xt platinum & shader.. (6)
Print spooler problem (16)
Recent Discussions
Laptop with wireless problem. (10)
Open With ..... Win7 (2)
Internet Lost (5)
Skillsoft Network+ Study Software Que.. (9)
NO GAS (0)
Help getting around port 80 for camer.. (3)
virus blocking exe. files (1)
windows vista security holes (14)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Nvidia GTX 260 problem (1)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)


All times are GMT -4. The time now is 01:22 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28