HOW TO:打开“数据链接属性”对话框并返回连接字符串

来源:互联网 发布:登陆淘宝提示app存在风 编辑:程序博客网 时间:2024/05/12 05:33

项目要求:
Option Strict Off
并引用
Microsoft OLE DB Service Component 1.0 Type Library

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim DataLink As New MSDASC.DataLinks
        Dim o As Object
        o = DataLink.PromptNew
        MsgBox(o.ConnectionString)
    End Sub

原创粉丝点击