OleDb reads Access, "unspecified error" Exception

Source: Internet
Author: User
C # Use Oledb to connect to Access. Some exceptions may occur in conn. Open (): It's okay to restart the program. What is the problem? Capture System. Data. OleDb. OleDbExceptionMessage unspecified error SourceMicrosoftJETDatabaseEngineErrorCode-2147467259StackTrace: in S

C # Use Oledb to connect to Access. Some exceptions may occur in conn. Open (): It's okay to restart the program. What is the problem? Capture System. Data. OleDb. OleDbException Message = unspecified error Source = Microsoft JET Database Engine ErrorCode =-2147467259 StackTrace: in S

C # Use Oledb to connect to Access, and some will see the following in conn. Open ():Exception:

There is no problem with restarting the program. What is the problem?

Capture System. Data. OleDb. OleDbException
Message = NotSpecifyOfError
Source = Microsoft JET Database Engine
ErrorCode =-2147467259
StackTrace:
In System. Data. OleDb. OleDbConnectionInternal.. ctor (OleDbConnectionString constr, OleDbConnection connection)
In System. Data. OleDb. OleDbConnectionFactory. CreateConnection (DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool, DbConnection owningObject)
In System. Data. ProviderBase. DbConnectionFactory. CreateNonPooledConnection (DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
In System. Data. ProviderBase. DbConnectionFactory. GetConnection (DbConnection owningConnection)
In System. Data. ProviderBase. DbConnectionClosed. OpenConnection (DbConnection outerConnection, DbConnectionFactory connectionFactory)
In System. Data. OleDb. OleDbConnection. Open ()
In NSCEV. Database. Attribute. Opera. MDBManager. GetConnection (String path) Location D: \ HBEDI \ Src \ Library \ NSCEV. Database. Attribute \ Opera \ MDBManager. cs: Row 29
In NSCEV. database. attribute. opera. MDBManager. queryToDT (String path, String SQL) Location D: \ HBEDI \ Src \ Library \ NSCEV. database. attribute \ Opera \ MDBManager. cs: row number 34
In NSCEV. HBEDI. powerLineDesign. aidedDesignForm. frmTowerBestChoice. frmTowerBestChoice_Load (Object sender, EventArgs e) Location D: \ HBEDI \ Src \ HBEDI \ NSCEV. HBEDI. powerLineDesign \ AidedDesignForm \ FrmTowerBestChoice. cs: Row 245
InnerException:

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.