Hi all,
I trying IBM DB2 Database. I want to connect to DB2 database with these code:
And I get the error at db2CNN.Connecti onString.
The error message is "Invalid argument"
Could you just help me explain and show me some small samples.
Thank you so much!
I trying IBM DB2 Database. I want to connect to DB2 database with these code:
Code:
Imports IBM.Data.DB2
Module mdMAIN
Public db2CNN As New DB2Connection
Public strSRV As String = "xxx.xxx.xxx.xxx"
Public strUSR As String = "xxx"
Public strPASS As String = "xxx"
Public Sub getCNN()
[B]db2CNN.ConnectionString[/B] = "Provider=IBMDA400.DataSource.1;" _
& "Persist Security Info=False;" _
& "User ID=" & strUSR & ";" _
& "password=" & strPASS & ";" _
& "Data Source=" & strSRV & ";"
db2CNN.Open()
End Sub
End Module
The error message is "Invalid argument"
Could you just help me explain and show me some small samples.
Thank you so much!
Comment