What are tags?
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > MySQL database development > Microsoft OLE DB Provider for ODBC Drivers error '80004005' 10 November 2009 17:57:51

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Jeremy Hodges 11 December 2003 09:50:58
 Hey Guys,

I just installed MySQL 4.0 and MyODBC 3.51 on Windows XP running IIS.

But when I try to connect to my database with ASPs I get this error:

-------------------­-------
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/source/experimenti­ng/mysql.asp, line 20

-------------------­-------

Here is my code:

<%
Set adoDataConn = Server.CreateObject­("ADODB.Connection")­
adoDataConn.Open "MySQLTest"
%>


Please help!
Add comment
Christian Mack 11 December 2003 16:27:23 permanent link ]
 Jeremy Hodges wrote:> Hey Guys,>
I just installed MySQL 4.0 and MyODBC 3.51 on Windows XP running IIS.>
But when I try to connect to my database with ASPs I get this error:>
-------------------­------- > Microsoft OLE DB Provider for ODBC Drivers error '80004005' >
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified >
/source/experimenti­ng/mysql.asp, line 20 >
-------------------­------->
Here is my code:>
<%> Set adoDataConn = Server.CreateObject­("ADODB.Connection")­ > adoDataConn.Open "MySQLTest"> %>>
Please help!

Hi

Did you create a System DSN named "MySQLTest"?

Bye
Christian

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.­com/myodbc
To unsubscribe: http://lists.mysql.­com/myodbc?unsub=gcd­mo-myodbc@m.gmane.or­g


Add comment
Guest 13 July 2005 22:31:12 permanent link ]
 A quick question. I have two access dbf files in the same directory
structure. I can access them via ASP separately but when I try to
access a table in one which has been linked using the link manager
I get kicked out. If I just go into access I can access the linked
table.

For instance:

info.dbf has a link table (tbluser) to users.dbf

I can access both info.dbf and users.dbf over the net but when I
try to get to the linked table (tblusers) in info.dbf I
get the above error.

Thanks for any help.

Add comment
Ray Costanzo 13 July 2005 22:51:00 permanent link ]
 What's the entire error?

Ray at work

<johnzur@hotmail.co­m> wrote in message
news:1121279472.482­600.221020@g44g2000c­wa.googlegroups.com.­..> A quick question. I have two access dbf files in the same directory> structure. I can access them via ASP separately but when I try to> access a table in one which has been linked using the link manager> I get kicked out. If I just go into access I can access the linked> table.>
For instance:>
info.dbf has a link table (tbluser) to users.dbf>
I can access both info.dbf and users.dbf over the net but when I> try to get to the linked table (tblusers) in info.dbf I> get the above error.>
Thanks for any help.>


Add comment
Guest 14 July 2005 07:08:53 permanent link ]
 Here's the entire error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database
engine cannot open the file '\\15.40.4.241\NETD­RIVE\incoming.mdb'. It
is already opened exclusively by another user, or you need permission
to view its data.

I put in the IP address in the link because I access the database from
other machines and if I use a drive letter I get an error when
accessing
via a networked drive. The links work fine when using a network
drive.

Add comment
Ray Costanzo 14 July 2005 07:26:13 permanent link ]
 This code is running under the context of your anonymous IIS user, probably,
which is most likely IUSR_machinename. This is an account local to that
machine. A server sitting next to it, in the same domain or not, will not
know who this user is that is trying to access this NETDRIVE share, so that
remote server will deny acccess to it. I'm guessing this is what the
problem is. See here: http://www.aspfaq.c­om/show.asp?id=2168

Ray at home

<johnzur@hotmail.co­m> wrote in message
news:1121310533.494­928.57540@g43g2000cw­a.googlegroups.com..­.> Here's the entire error:>
Microsoft OLE DB Provider for ODBC Drivers error '80004005'>
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database> engine cannot open the file '\\15.40.4.241\NETD­RIVE\incoming.mdb'. It> is already opened exclusively by another user, or you need permission> to view its data.>
I put in the IP address in the link because I access the database from> other machines and if I use a drive letter I get an error when> accessing> via a networked drive. The links work fine when using a network> drive.>


Add comment
Bob Barrows 14 July 2005 14:20:01 permanent link ]
 johnzur@hotmail.com wrote:> Here's the entire error:>
Microsoft OLE DB Provider for ODBC Drivers error '80004005'>
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database> engine cannot open the file '\\15.40.4.241\NETD­RIVE\incoming.mdb'. It> is already opened exclusively by another user, or you need permission> to view its data.>
I put in the IP address in the link because I access the database from> other machines and if I use a drive letter I get an error when> accessing> via a networked drive. The links work fine when using a network> drive.

Just to add to what Ray said (which is completely correct): all users of an
access databse must have read/write permissions for the folder containing
the database file, not just the file. This is because they need to be able
to create, modify and delete the database lock control file (dbname.ldb) in
order to allow multiuser activity. Without the lock file, only one user will
be able to connect to the database at a time.


Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Add comment
Guest 15 July 2005 00:35:39 permanent link ]
 I am having no problem getting both the database with the linked table
USERS
and the database that actually holds the unlinked USERS table
on a network drive so I don't see permissions as a problem since the
web can access the files fine as long as it isn't trying to access
the linked tables in other database.

For instance:

If I change the link table USERS in the SALES database to a non-link
table the asp pages over the web work fine.

I can access the original USERS table in the ALLUSERS database
find over the web.

I run into problems with I try to access the linked USERS table
through the SALES database over the web. This link works fine
from a networked drive.

Everything works fine except when accessing the linked tables from
the database employing the link when using the web.

Thanks.

John Z.




Bob Barrows [MVP] wrote:> johnzur@hotmail.com­ wrote:> > Here's the entire error:> >
Microsoft OLE DB Provider for ODBC Drivers error '80004005'> >
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database> > engine cannot open the file '\\15.40.4.241\NETD­RIVE\incoming.mdb'. It> > is already opened exclusively by another user, or you need permission> > to view its data.> >
I put in the IP address in the link because I access the database from> > other machines and if I use a drive letter I get an error when> > accessing> > via a networked drive. The links work fine when using a network> > drive.>
Just to add to what Ray said (which is completely correct): all users of an> access databse must have read/write permissions for the folder containing> the database file, not just the file. This is because they need to be able> to create, modify and delete the database lock control file (dbname.ldb) in> order to allow multiuser activity. Without the lock file, only one user will> be able to connect to the database at a time.>
Bob Barrows>
--> Microsoft MVP - ASP/ASP.NET> Please reply to the newsgroup. This email account is my spam trap so I> don't check it very often. If you must reply off-line, then remove the> "NO SPAM"

Add comment
Bob Barrows 15 July 2005 02:43:49 permanent link ]
 johnzur@hotmail.com wrote:> I am having no problem getting both the database with the linked table> USERS> and the database that actually holds the unlinked USERS table> on a network drive so I don't see permissions as a problem since the> web can access the files fine as long as it isn't trying to access> the linked tables in other database.>

Oh! Linked tables! I've never gotten them to work. This article may contain
a reason:

http://www.trigemin­al.com/usenet/usenet­025.asp?1033

However, it's a very old article whose information may be out-of-date.

The only suggestion I can make is to use the Jet OLE DB Provider instead of
ODBC. See www.carlprothman.co­m for examples of OLE DB connection strings for
Jet.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Add comment
Cowboy - MVP 15 July 2005 17:47:04 permanent link ]
 A note before starting: I mention DBase files in this post. This is due to
the files being DBF format, which was originally created by DBase. The actual
files could have been created by Paradox, FoxPro, Advantage or a variety of
other programs that have adopted the basic format (generally with
extensions). As I am not sure what program actually created these files (not
evident in the post, AFAICS), I am calling them DBase files.


Running through the thread, I can see a couple of issues.

1. I would move to OLEDB instead of ODBC. If for no other reason, you will
speed up the application by removing one layer in ADO.

2. Is there anyway to directly access the DBase files? Linked tables also
add another layer. In the case of linked tables, you are setting up a layer
that may be a cause of failure.

3. If you not able to get rid of the linked tables, you can aim at creating
an Access query that pulls the data you desire and firing it off like a
stored procedure. I do not guarantee this will solve the problem, but it is
worth a try.

4. Another possible means of attack is putting the data access logic into a
component that uses COM+ and assigning a "super user" type account to the
application it runs in. NOTE: By application, I mean COM+ applications, which
used to be called packages under MTS. This will likely get you around
permission issues without having to reduce security on the machine.

Finally, a Q&A:

What version of Windows is the app on? If Windows 2003, the security model
is changed and may be an issue, esp. if the data directory(s) are outside of
the web hierarchy. This is a common issue.

What are the perms both on the Access directory and the DBase files? Unless
you have a layer that assumes an identity (COM+ comes to mind), the identity
of the web server carries all the way down to the files. This means you might
have access to certain raw files, but not others, causing a blow up. The user
account running to access the data (IUSR for anon access, or Network Service
in Windows 2003) must have access up and down the chain. If not ... BOOM!



--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*******************­********
Think Outside the Box!
*******************­********


"johnzur@hotmail.co­m" wrote:
A quick question. I have two access dbf files in the same directory> structure. I can access them via ASP separately but when I try to> access a table in one which has been linked using the link manager> I get kicked out. If I just go into access I can access the linked> table.>
For instance:>
info.dbf has a link table (tbluser) to users.dbf>
I can access both info.dbf and users.dbf over the net but when I> try to get to the linked table (tblusers) in info.dbf I> get the above error.>
Thanks for any help.>
Add comment
Videotron 24 December 2006 18:29:20 permanent link ]
 Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.

This is an error I got after reinstalling windows and server IIS. I looked
all over the Internet but could not find out how to resolve this. Until I
fell upon a message that said check the permissions. I checked all the
permissions on the server and directories. The only thing I didn't try is
giving everyone full rights to the database its self. And viola the problem
was solved. I thought it was fair to share this information with the ASP
community.


Add comment
Mike Brind 24 December 2006 22:45:29 permanent link ]
 
"Videotron" <richard_perreault@­hotmail.com> wrote in message
news:h1xjh.10048$Ld­4.64110@wagner.video­tron.net...
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Not a valid password.
This is an error I got after reinstalling windows and server IIS. I looked
all over the Internet but could not find out how to resolve this. Until I
fell upon a message that said check the permissions. I checked all the
permissions on the server and directories. The only thing I didn't try is
giving everyone full rights to the database its self. And viola the
problem was solved. I thought it was fair to share this information with
the ASP community.

Thanks.

For what it's worth, that is the first thing I would have looked at.
However, I wouldn't have been using the ODBC driver. It's been deprecated:
http://databases.as­pfaq.com/database/wh­at-should-my-connect­ion-string-look-like­.html

Merry Xmas

--
Mike Brind


Add comment
Guest 11 March 2009 05:32:20 permanent link ]
 You are the man! Thanks for posting this solution. You just saved me hours.
Add comment
Guest 4 April 2009 08:05:45 permanent link ]
 www.dailyjobspk.com thats mine domain name when iam going to login my account this type of error shows message any one please help me how i can solve this type of error??

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/LoginAction.asp, line 23
Add comment
Guest 10 November 2009 17:57:51 permanent link ]
 Hi Jeremy. Hope that you have already resolved the issue, but anyway. I can recommend trying the sql server data file secondary restore program that can be found here: http://www.recovery­toolbox.com/export_d­ata_from_emergency_d­atabase_in_sql_2008.­html, it automatically eliminates dbf errors. It is a good solution, if you experience difficulties with dbx files
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > MySQL database development > Microsoft OLE DB Provider for ODBC Drivers error '80004005' 10 November 2009 17:57:51

see also:
SEO toolbar
Indexed pages radically change often.
Google Restoring from Backup?
pass tests:
Do you know women?
see also:
China toner cartridge exporter…
HP laser toner cartridge exporter…
Clone2go Free Video Converter Released

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .