Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Microsoft Access and System DSN.
Old 04-27-2006, 01:34 PM Microsoft Access and System DSN.
Junior Talker

Posts: 1
Trades: 0
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.
Ranv is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-28-2006, 07:36 AM Re: Microsoft Access and System DSN.
Junior Talker

Posts: 2
Trades: 0
put the error on microsoft.com site and try.
ramki067 is offline
Reply With Quote
View Public Profile
 
Old 04-28-2006, 04:08 PM Re: Microsoft Access and System DSN.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
assuming IIS,

the IUSR_machinename user on the webserver must have read/write permission to the folder the .mdb is in or be in a group that has access.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-05-2006, 06:46 AM Re: Microsoft Access and System DSN.
Junior Talker

Posts: 1
Trades: 0
Quote:
Originally Posted by chrishirst
assuming IIS,

the IUSR_machinename user on the webserver must have read/write permission to the folder the .mdb is in or be in a group that has access.
Thanks, this worked for me. I just wanted to run some database query demos locally using iis on a laptop as localhost. The mdb files were not under inetpub.
remery is offline
Reply With Quote
View Public Profile
 
Old 10-10-2006, 05:47 AM Re: Microsoft Access and System DSN.
Junior Talker

Posts: 1
Name: indera
Trades: 0
Hi,
I try to open the MS Access file from network drive, but, it give me this error "Microsoft Access cannot open this file. This file is located outside your intranet or on an untrusted site. Microsoft Access will not open the file due to potential security problem.".

I search at microsoft website,but the solution not really help. Does anyoe know how to resolved this problem?
Thanks.
indera is offline
Reply With Quote
View Public Profile
 
Old 10-10-2006, 11:10 AM Re: Microsoft Access and System DSN.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Put the file into a shared folder on the drive, indera. That usually solves it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Microsoft Access and System DSN.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37188 seconds with 12 queries