现在的位置: 首页 > 综合 > 正文

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

2011年03月05日 ⁄ 综合 ⁄ 共 349字 ⁄ 字号 评论关闭
Author:水如烟
项目要求:
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

抱歉!评论已关闭.