473,385 Members | 1,958 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,385 software developers and data experts.

ASP Login Failure - Database Password

Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateObject("ADODB.Connection")

sDBName = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerVariables("APPL_PHYSICAL_PATH") &
"fpdb\plogons.mdb;" & _
"Uid=admin;" & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"

Nov 13 '05 #1
6 2367

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:cb********************************@4ax.com...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateObject("ADODB.Connection")

sDBName = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerVariables("APPL_PHYSICAL_PATH") &
"fpdb\plogons.mdb;" & _
"Uid=admin;" & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularly if the database is being held on a web server anyway.

Nov 13 '05 #2
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on my
PC. This application is to keep up with the many passwords and logins
I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittlipz.com> wrote:

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:cb********************************@4ax.com.. .
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateObject("ADODB.Connection")

sDBName = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerVariables("APPL_PHYSICAL_PATH") &
"fpdb\plogons.mdb;" & _
"Uid=admin;" & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularly if the database is being held on a web server anyway.


Nov 13 '05 #3
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves
On Thu, 27 Jan 2005 10:41:36 -0500, N. Graves
<ng*****@REMOVEyahoo.com> wrote:
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on my
PC. This application is to keep up with the many passwords and logins
I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittlipz.com> wrote:

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:cb********************************@4ax.com. ..
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read and
work with the database.

Here is the code that I have to open the connection to the Database:

Set objDB = Server.CreateObject("ADODB.Connection")

sDBName = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerVariables("APPL_PHYSICAL_PATH") &
"fpdb\plogons.mdb;" & _
"Uid=admin;" & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"


Don't confuse the two types of password you can have. You can have one
using JET user-level security where you have an account comprising username
and password - this is what you have coded for. Alternatively, you can have
the simplest password where everyone has the same.
see the following for details: http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost worthless,
particularly if the database is being held on a web server anyway.


Nov 13 '05 #4

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:2i********************************@4ax.com...
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves


The choice of connection string is the choice between using Jet OLE DB 4.0
driver instead of an ODBC driver. The former is the newer technology but
perhaps you have a compelling reason to use the other. Anyway, both should
work, but you need some error handling and if an error occurs, you need to
delve into the Errors collection of the connection object and inspect the
SqlState of the error before you can find out what's going on. Database
Engine error '80004005' does not help much, does it?
As this is really an ASP question you might be better off in another
newsgroup, or I could send you a demo of this to your e-mail if it's valid -
mine isn't.

Nov 13 '05 #5

Thanks Eric. I would like to see your code! I have been using and
developing code to access SQL and Access Database for several years
and with a lot of success. This Database password has presented new
challenges for me to say the least.

My Email is ng*****@REMOVEYahoo.com ... Remove the REMOVE for the
correct address.

On Fri, 28 Jan 2005 16:17:59 +0000 (UTC), "Eric Socialize"
<er**@schittlipz.com> wrote:

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:2i********************************@4ax.com.. .
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves


The choice of connection string is the choice between using Jet OLE DB 4.0
driver instead of an ODBC driver. The former is the newer technology but
perhaps you have a compelling reason to use the other. Anyway, both should
work, but you need some error handling and if an error occurs, you need to
delve into the Errors collection of the connection object and inspect the
SqlState of the error before you can find out what's going on. Database
Engine error '80004005' does not help much, does it?
As this is really an ASP question you might be better off in another
newsgroup, or I could send you a demo of this to your e-mail if it's valid -
mine isn't.


Nov 13 '05 #6
Br
N. Graves wrote:
Eric or anyone following this note:

OK I was able to get past the password issue but now I have another
issue. Hopefully I can explain my issue clearly

I was using a Driver instead of the Provider to connect to the
database. When the database did not have a password I could use
SELECT, DELETE UPDATE AND INSERT. Now that I'm using the Provider
with the password I'm only able to use SELECT.

Here is the error for using "Delete from tbl_Logons"

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.

Are there limitation to using the Provider to connect to the Database
or am I doing something else wrong?

I would appreciate you help and knowledge

Thanks
N. Graves
Perhaps you need to set the cursor type or something when you open the
recordset?

Br@dley


On Thu, 27 Jan 2005 10:41:36 -0500, N. Graves
<ng*****@REMOVEyahoo.com> wrote:
Eric your the man!

I did not understand the difference in the passwords and you where a
big help. I know about the security issue too.

This Web page that I'm working on is my own and will reside only on
my PC. This application is to keep up with the many passwords and
logins I have to maintain.

Thanks again for you help!
On Thu, 27 Jan 2005 15:16:57 +0000 (UTC), "Eric Schittlipz"
<er**@schittlipz.com> wrote:

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:cb********************************@4ax.com...
Thank you for taking your time to read my question... please offer
your knowledge it will be appreciated!

I'm writing a ASP Web page to access a Access Database that has a
Database Password set. If I remove the password I'm able to read
and work with the database.

Here is the code that I have to open the connection to the
Database:

Set objDB = Server.CreateObject("ADODB.Connection")

sDBName = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & Request.ServerVariables("APPL_PHYSICAL_PATH") &
"fpdb\plogons.mdb;" & _
"Uid=admin;" & _
"Pwd=test"

Open sDBName

Here is the error that is returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
The database password is "test"

Don't confuse the two types of password you can have. You can have
one using JET user-level security where you have an account
comprising username and password - this is what you have coded for.
Alternatively, you can have the simplest password where everyone
has the same.
see the following for details:
http://support.microsoft.com/kb/191754
Both passwords are easily cracked, but the second one is almost
worthless, particularly if the database is being held on a web
server anyway.

Nov 13 '05 #7

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

Similar topics

1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
5
by: calaha | last post by:
Hi all, I have been working with this since last night, and can't quite figure out why it's not working. I have a simple login box form that is set to be my startup form in my Access app (upon...
7
by: Cemal Karademir | last post by:
Hi, I'm workin on a small Login page/program with asp.net. It uses an MS-Access database that looks like this: USERID | NAME | PASSWORD _________________________________ 1 ...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
2
by: Shakun | last post by:
Hi All, This is my 1st posting to this group. Can any1 help me with the "Remember Me" which is there in a login form. Im pasting the code below. Im not able to set a cookie.. Thanks, Shakun...
2
by: dubdave | last post by:
Hi I wrote a very basic login script which acesses a mySQL database, like this:- <?php // compares values entered in login page form with mySQL database, and then directs either to...
0
by: kuldeep singh sethi | last post by:
Hi All, I am facing a problem from many days. and need to help me. i am a local machine user. I am developing a site in which login page is as start page. and there is sql server as database. so...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.