473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ODBC permissions

Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No;U ID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks

Nov 19 '05 #1
2 4374
Might be a tough one to track down, but I'd probably start in
Administrative Tools -> Local Security Policy and turn on auditing,
particularly "Audit privledge use" and "object access" for failures.
You might turn up something in the security log.

You might also try the FileMon and RegMon tools from sysinternals.com
to see if the record any access errors when your Sage stuff is
starting up.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 6 Oct 2005 03:03:24 -0700, di*********@yahoo.com wrote:
Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No; UID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks


Nov 19 '05 #2

Scott Allen wrote:
Might be a tough one to track down, but I'd probably start in
Administrative Tools -> Local Security Policy and turn on auditing,
particularly "Audit privledge use" and "object access" for failures.
You might turn up something in the security log.

You might also try the FileMon and RegMon tools from sysinternals.com
to see if the record any access errors when your Sage stuff is
starting up.
Thanks for your reply. I tracked down the problem using FileMon. The
Sage driver was trying to access:
C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys
I added read permissions for Authenticated Users to this directory and
it worked.

Thanks again.
--
Scott
http://www.OdeToCode.com/blogs/scott/

On 6 Oct 2005 03:03:24 -0700, di*********@yahoo.com wrote:
Hello

I have posted to this group as it seems to be a lot busier than the
odbc specific ones. If you can suggest a more appropriate group I will
post it there.

I am connecting to databases on a server using asp pages. There are two
databases, an Access database and a Sage database (part of the Sage
Line 50 accounting package)

These are the connection strings

Access
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\mydb.mdb"

Sage
"Driver={Sage Line 50
v10};DIR=C:\Sage\Accounts\ACCDATA;UseDataPath=No; UID=username;PWD=password"

The Access connection works for any user, the Sage connection only
works if the user is an administrator on the server (the UID and PWD
for the Sage connection are Sage specific and don't need to match the
username of the person using the asp pages). I get the same results
using a DSN. I can connect to the Sage database on the server as a
normal user by using a local DSN with the DIR setting as the mapped
network drive on the server, so I don't think the problem is
file/folder permissions (they look ok anyway).

The error when a user tries to connect via ASP to the Sage database is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
User ID or Password invalid

I don't think this is from the actual connection because as soon as you
make the user an administrator it will work. I don't think the driver
is checking if the user is an administrator because then it wouldn't
work using a local DSN and a network path. It seems the Sage driver is
trying to do something that can't be done by a normal user on the
server (e.g. launch a process).

Anyone got any ideas how I can find out what is going on and get users
to access the Sage database.

Thanks


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Lozzi | last post by:
This happens a lot to my databases. I store them at the root of my developing files, i.e. c:\My Projects\Proj1\database.mdb. Randomly, the security settings on this database will drop to the basic...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
3
by: Steve Farber | last post by:
I'm not especially new to databases and I have used ODBC before with other data sources, but I cannot seem to get Access 2003 to talk to MySQL 4.0.15. I have MySQL running with new tables...
2
by: Tina Robichaux | last post by:
I have found info on this problem at MS, but they say this problem does not occur with SQL 2K and MDAC 2.6 SP2, yet I am still experiencing it: I have a SQL user specifically created to SELECT...
1
by: paul_tomlin | last post by:
We connect via terminal services to an excel spreadsheet that has an ODBC link to an access database using a pivot table, when we try to refresh the data within the excel spreadsheet we receive the...
5
by: somersbar | last post by:
hello all, im trying to connect to a microsoft access database from an ASP.NET web form. i keep getting the following error though: ERROR Could not use '(unknown)'; file already in use....
1
by: Hitesh Joshi | last post by:
Hi, I have a prod database (main bread & bread DB) and have a small access database that sales team is using... I created a login inside SQL 2000 and gave db_read permission and SELECT ...
4
by: Rodent | last post by:
I have an IIS 6.0, 2003 Server running with PHP installed. I have an access database with a DSN ODBC connection configured. When this ODBC is configured to access the database locally - great,...
1
by: GinaM1 | last post by:
Hi All, I am working with a software package that logs messages via ODBC to a remote SQL Server 2005 Service Pack 2 database. The server OS is Server 2003 Service Pack 1. The software that we are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.