Dim DS As DataSet = New DataSet("Table")
Dim Table As New Data.DataTable
Table.Columns.Add("TABLE1_", GetType(String))
Dim sQl1 As String
''■■■■■■■■■■■■■■■■ INSERT รอบแรก ■■■■■■■■■■■■■■■
'---------------------------------
sQl1 = "INSERT INTO TBD_pallet(palletkey,OPERID,STATUS,UPDDTE,SYSDTE) " & _
" VALUES ('" & Trim(PALLETKEY) & "', " & _
"'" & Trim(userID) & "' ," & _
"'" & Trim(PLxdxr) & "' ," & _
" TO_DATE('" & Strings.Format(DteTime, formatDATE) & "', 'yyyy/MM/dd hh24:mi:ss')," & _
" TO_DATE('" & Strings.Format(DteTime, formatDATE) & "', 'yyyy/MM/dd hh24:mi:ss')) "
Table.Rows.Add(sQl1)
'------------------------------------------------------
''■■■■■■■■■■■■■■■■ INSERT รอบสอง■■■■■■■■■■■■■■■
'------------------------------------------------------
sQl1 = " INSERT INTO TBD_PRTPALLET(PALLETKEY,OPERID,STATUS,UPDDTE,SYSDTE) " & _
" VALUES ('" & Trim(PALLETKEY) & "', " & _
"'" & Trim(userID) & "'," & _
"'" & Trim(PLxdxr) & "' ," & _
" TO_DATE('" & Strings.Format(DteTime, formatDATE) & "', 'yyyy/MM/dd hh24:mi:ss')," & _
" TO_DATE('" & Strings.Format(DteTime, formatDATE) & "', 'yyyy/MM/dd hh24:mi:ss')) "
Table.Rows.Add(sQl1)
DS.Tables.Add(Table)
ssCON.Exc_DataSet(DS) --- เรียกใช้งาน Web service ทำงาน ตาม Query ที่เราต้องการครับ