Solutions to errors when connecting ASP to the Access Database

Source: Internet
Author: User
Solutions to errors when connecting ASP to the Access Database
Error Type 1:

Microsoft ole db provider for ODBC drivers (0x80004005)
[Microsoft] [ODBC Microsoft Access driver] cannot be updated. The database or object is read-only.
Error Type 2:
Microsoft ole db provider for ODBC drivers error '20140901'
[Microsoft] [ODBC Microsoft Access driver] common errors do not enable the Registry keyword 'temporary (volatile) jet DSN for process 0x728 Thread 0x854 DBC 0x276fb44 jet '.

This may occur when you use ASP to connect to the access database. Why? Because the directory permission of your database file does not enable sufficient permissions for a specific user, you can only perform read-only access. In this case, the file system is NTFS. How can this problem be solved?
Find the directory where the database is located, or the upper directory, and set the folder properties ---- Security ---- add ---- search ---- iuser _ your machine name ---- add
At this time, an Internet Guest user will be added to your user, and the permission will be checked for modification and writing. Now, the problem is solved. You can run it again to see if the problem has been solved.

Note: Windows XP users use the simple file sharing method by default. Therefore, when you click Properties, you cannot see the Security tab. The procedure is as follows:

My computer --> Folder Options --> View --> deselect the simple file sharing (recommended) check box. Check whether you want to change the properties of the folder. Is there an additional Security tab?

Appendix: Error Type 2 may also be caused by incorrect database path

The following are some Database Calling errors that are frequently encountered during VM maintenance in ASP programs. These errors are collected as follows:
ADODB. recordset error '800a0bb9' variable or type is incorrect, or is not within the acceptable range, or is in conflict with other data.
Possible causes of errors:
1. This error appears in a similar statement: "Rs. Open SQL, Conn,", because the conn object for database connection is not opened.
――――――――――――――――――――――――――――――――――――
You cannot open the Registry keyword (8007000e)
Microsoft ole db provider for ODBC drivers error '8007000e'
[Microsoft] [ODBC Microsoft Access driver] common errors do not enable the Registry keyword 'temporary (volatile) jet DSN for process 0x11b4 thread 0x1a4c DBC 0x9d34354 jet '.
Possible causes of errors:
1. The method is incorrect when you open the database. The method for calling the standard access database is as follows:
"Driver = {Microsoft Access Driver (*. mdb)}; DBQ =" & server. mappath ("DB. mdb ")
2. Uploading database files.

――――――――――――――――――――――――――――――――――――
The parameter is insufficient. Expected Value is 1 (80040e10)
Microsoft ole db provider for ODBC drivers error '80040e10'
The [Microsoft] [ODBC Microsoft Access driver] parameter is insufficient. Expected Value is 1.

Possible causes of errors:
1. There is a problem with the Condition Clause after the WHERE clause of the SQL query statement that opens the data. Generally, the logical comparison symbol is missing or the field name is incorrect.
――――――――――――――――――――――――――――――――――――
A general network error occurs. Check the network documentation (80004005)
Microsoft ole db provider for ODBC drivers error '000000' [Microsoft] [odbc SQL Server Driver] [TCP/IP sockets] General network error. Check the network documentation.

Possible causes of errors:
1. The database connection is incorrectly written. The database name and server name may be incorrect.
2. The database server is restarting.
――――――――――――――――――――――――――――――――――――
You cannot use ''; the file is in use (80004005)
Microsoft Jet Database Engine error '20140901'
You cannot use ''; the file is already in use.

Possible causes of errors:
1. files may be in use: Upload, compression, and packaging.
2. The program code may contain nested and duplicate database call files.

――――――――――――――――――――――――――――――――――――
Cannot be updated. A updatable query (80004005) is required for read-only/operations on databases or objects)
Microsoft ole db provider for ODBC drivers error '20140901'
The [Microsoft] [ODBC Microsoft Access driver] operation must use an updatable query.
Microsoft ole db provider for ODBC drivers error '000000' [Microsoft] [ODBC Microsoft Access driver] cannot be updated. The database or object is read-only.
Possible causes of errors:
1. Insufficient database file permissions.
2. The file space has reached the disk limit.
――――――――――――――――――――――――――――――――――――
No data source name found and no default driver specified (80004005)
Microsoft ole db provider for ODBC drivers error '20140901'
[Microsoft] [ODBC driver manager] No data source name found and default driver not specified
Possible causes of errors:
1. When ODBC is used to connect to the database and ODBC database is not configured on the server, use the standard oledb call method:
"Driver = {SQL Server}; database = dbname; server = SRV; uid = user; Pwd = Pd"

Provider error '20140901'
――――――――――――――――――――――――――――――――――――
Microsoft ole db provider for ODBC drivers error '20140901'
Unspecified error
/PCN/Conn. asp, row 8

Possible causes of errors:

1. The error page name indicates a problem occurred when connecting to the database. The biggest possible reason is that the database cannot be connected, and the above "general network error ..." Is a problem of the same nature. Check whether the database server is normal. This type of error typically occurs on connecting to the MS sqlserver database.

ADODB. recordset error '800a0e7d'
――――――――――――――――――――――――――――――――――――
ADODB. recordset error '800a0e7d'
The connection cannot be used to perform this operation. In this context, it may have been disabled or invalid.
/Index. asp, row 9

Possible causes of errors:

1. A closed or unopened database connection is used in the program.

Server. Createobject failed
――――――――――――――――――――――――――――――――――――
Server Object error 'asp 0177: 800401f3'
Server. Createobject failed
/XXXXX. asp, row 155
Invalid progid. To get more information about this message, visit the Microsoft online support site: http://www.microsoft.com/contentredirect.asp.
Possible causes of errors:
1. Most of the errors occur when a component is created. The components used by the program are not supported by the server and must be registered. It is common in various ASP pages that use Upload components.

"Cannot be deleted from the specified data table" may be caused by a multi-Table relationship, but I have permission issues here. In the resource manager, set the database directory permission to everyone for read/write, set the directory IP address in IIS to reject all requests.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.