| ' ********************************************************
' (コンストラクタの定義)( Sub で定義する )
' ********************************************************
Public Sub New( _
ByVal type As Integer, _
ByVal sv As String, _
ByVal db As String, _
ByVal user As String, _
ByVal pass As String)
Me.DBType = type
Select Case Me.DBType
Case 1
strCon = String.Format( _
"Driver={{MySQL ODBC 3.51 Driver}};" + _
"SERVER={0};" + _
"DATABASE={1};" + _
"UID={2};" + _
"PWD={3}", sv, db, user, pass)
Case 2
strCon = String.Format( _
"Driver={{Microsoft ODBC for Oracle}};" + _
"SERVER={0};" + _
"UID={2};" + _
"PWD={3}", sv, db, user, pass)
Case Else
End Select
End Sub
| |