映射到网络时找不到可安装的ISAM

时间:2017-07-14 19:21:06

标签: asp.net vb.net ms-access oledb

这是我的aspx.vb代码,我连接到指定服务器上的访问数据库。我按照https://www.connectionstrings.com/ace-oledb-12-0/network-location-mdb-file/

上的给定,按照网络位置(mdb文件)放置了连接字符串
    Protected Sub btnSave_Click1(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click

        Dim connectionString As [String] = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\135.2.219.70\DataImport\VQT.mdb"

        Dim ds As New DataSet()
        Dim conn As New OleDbConnection(connectionString)
        conn.Open()

        conn.Close()

End Sub

0 个答案:

没有答案