Dim conn As DB2Connection = New DB2Connection
Dim connectString As String
Dim cmd As DB2Command
connectString = "Provider=IBMDADB2;Database=DUMMIES;Server=servname;Protocol=TCPIP; Port=50000;Uid=db2admin;Pwd=password;"
line 23 : conn.ConnectionString = connectString
cmd = New DB2Command()
cmd.CommandText = "SELECT * FROM ADMINISTRATOR.ORDERS"
conn.Open()
แต่ไม่สามารถ connect ได้ โปรแกรมแจ้งว่า
Invalid argument
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.