Home  >  Article  >  Database  >  OleDb读取Access,“未指定的错误”异常

OleDb读取Access,“未指定的错误”异常

WBOY
WBOYOriginal
2016-06-07 15:42:342207browse

C#用Oledb连接Access,有的在conn.Open()时候会出现如下 异常 : 重启程序又没有问题了,到底是怎么回事? 捕捉到 System.Data.OleDb.OleDbException Message=未 指定 的 错误 Source=Microsoft JET Database Engine ErrorCode=-2147467259 StackTrace: 在 S

C#用Oledb连接Access,有的在conn.Open()时候会出现如下异常

重启程序又没有问题了,到底是怎么回事?

捕捉到 System.Data.OleDb.OleDbException
Message=未指定错误
Source=Microsoft JET Database Engine
ErrorCode=-2147467259
StackTrace:
在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
在 System.Data.OleDb.OleDbConnection.Open()
在 NSCEV.Database.Attribute.Opera.MDBManager.GetConnection(String path) 位置 D:\HBEDI\Src\Library\NSCEV.Database.Attribute\Opera\MDBManager.cs:行号 29
在 NSCEV.Database.Attribute.Opera.MDBManager.QueryToDT(String path, String sql) 位置 D:\HBEDI\Src\Library\NSCEV.Database.Attribute\Opera\MDBManager.cs:行号 34
在 NSCEV.HBEDI.PowerLineDesign.AidedDesignForm.FrmTowerBestChoice.FrmTowerBestChoice_Load(Object sender, EventArgs e) 位置 D:\HBEDI\Src\HBEDI\NSCEV.HBEDI.PowerLineDesign\AidedDesignForm\FrmTowerBestChoice.cs:行号 245
InnerException:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn