0
我使用以下连接字符串从我的访问数据库从vb.net应用程序连接,但没有连接。连接到访问没有dsn的数据库我
Driver={Microsoft Access Driver (*.mdb)}; Dbq=D:\Projects\tempdb.mdb
它显示我以下错误
ERROR [IM002] [微软] [ODBC驱动程序管理器]数据源名称找不到和未指定默认驱动程序
我的代码如下:
Dim odbcConn As OdbcConnection = New OdbcConnection(m_connectionString)
'' Build thr odbc Dataadapter
Dim odbcAdpt As OdbcDataAdapter = New OdbcDataAdapter(QueryToExecute, odbcConn)
odbcAdpt.SelectCommand.CommandType = CommandType.Text
try m_connectionString =“Provider = Microsoft.ACE.OLEDB.12.0; Data Source = D:\ Projects \ tempdb.mdb; Persist Security Info = False;” – nazark