Imports System.Data.OleDb
Dim cndb2 As OleDbConnection
cndb2 = New OleDbConnection("provider=DB2OLEDB;Server=xxx.xxx.xx.xxx:50000;Database=DBTEST;UID=db2admin;PWD=asdad")
cndb2.Open()
Dim odc As OleDbCommand = New OleDbCommand
sql = ("Insert into AGS_RFID_TAG (RFID_TAG_ID) VALUES(" & 1 & ")")
odc = New OleDbCommand(sql, cndb2)
odc.ExecuteNonQuery()
cndb2.Close()
Error ตรงบรรทัด cndb2.Open()
The 'DB2OLEDB' provider is not registered on the local machine.