One: The database is not connected to the server:
Workaround:
1: Locate SQL Server Configuration Manager
2: Locate the SQL Server service
3: Start SQL Server (MSSQLSERVER)
4: You can connect to the server now
Two: Excel table import shows that Microsoft is not registered on the local computer. ace.oledb.12.0 "Provider Solution
1: The cause and solution of my own discovery
Cause: The Excel table format differs from the format used by the SQL importer, for example: The Excel file is in 2007 format, but SQL only recognizes 2003 format, so you cannot import
Workaround: Change the original Excel file format to a format that the SQL importer can recognize.
2: Online solution (reprint) (Original blogger: Sina Blog _ Lingyun )
Go to Http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe to download. Then the installation will be OK.
This error is due to the fact that you are using a ACCESS2007 version of the database, but the server does not have a compatible program, so there is an error.
Microsoft is not registered on the local computer. ace.oledb.12.0 "provider.
Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.
Exception Details: System.InvalidOperationException: Microsoft is not registered on the local computer. ace.oledb.12.0 "provider.
Download the Office system driver: Data Connection Component Installation
Http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe
This download installs a set of components that non-Microsoft Office applications can use to read data from the Office system files, such as the Microsoft office Access (MDB and accdb) files and the Mic Rosoft read data in Office Excel (xls, xlsx, and xlsb) files. These components also support establishing connections to Microsoft Windows SharePoint Services and text files.
In addition, ODBC and OLE DB drivers are installed for application developers to use when developing applications that are connected to the Office file format. --------------------------------------------------------------------------------------------------------------- ------------------------------------
Use this download:If you are an application user, consult the application documentation for more information about how to use the appropriate driver. If you are an application developer who uses OLE DB, set the Provider parameter of the ConnectionString property to "microsoft.ace.oledb.12.0" if you want to connect to Microsoft Office Excel data, Add "Excel 12.0" to the extended properties of the OLE DB connection string. If you are an application developer who uses ODBC to connect to Microsoft Office Access data, set the connection string to "Driver={microsoft Access Driver (*.mdb, *.accdb)};D bq= Path to mdb/accdb file "If you are an application developer who is using ODBC to connect to Microsoft Office Excel data, set the connection string to" Driver={microsoft Excel Driver (*.XL S, *.xlsx, *.xlsm, *.XLSB)};D bq=path to xls/xlsx/xlsm/xlsb file "details: http://www.microsoft.com/downloads/zh-cn/ details.aspx?displaylang=zh-cn&familyid=7554f536-8c28-4598-9b72-ef94e038c891
Or:
Workaround 1 (Verify Yes)
Select an application pool for the application------> select Advanced Settings---------> Enable 32-bit applications------->true
Solution 2
Microsoft.ace.oledb.12.0 can not be used again x64, you want to force your Web application compiled into x86 and then released to Win08 x64, remember to set the Enable 32bit on the application pool Application = True.
(No validation)
Database connection not on server and data import unsuccessful problem