Imports System.Data.OleDb
Imports MySql.Data.MySqlClient
Imports System.Data.OracleClient
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Dim conn As New MySqlConnection
' Dim connString As String = "server=localhost;user id=root;password=123456;database=test"
' conn = New MySqlConnection(connString)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''以上mysql
Dim conn As New OracleConnection
conn.ConnectionString = "Password=BYORIDB;User ID=BYORIDB;Data Source=BUMONDB"
conn.Open()
MsgBox("chenggong!")
End Sub
End Class
oracle以及mysql连接.net代码以及连接工具
最新推荐文章于 2018-10-15 16:56:32 发布