G
Guest
Hello,
I have a vb.net web app that I am doing reads and adds to a database.
Everything works fine and happens instantly. I recently added an update and
it takes a long time to finish. I was wondering if there was anyone else who
experenced this problem and if there are any ways around it?
Dim MySQL As String
MySQL = "UPDATE db SET Var1 = 'Y' WHERE aimtno = " & tnum & "
and abook = " & tbook
Dim strConn As String = "Provider=IBMDA400; Data
source=datasource; user id = " & tuserid & "; password = " & tpass & ""
Dim MyConn As New OleDbConnection(strConn)
Dim cmd As New OleDbCommand(MySQL, MyConn)
cmd.Connection.Open()
cmd.ExecuteNonQuery()
MyConn.Close()
I have a vb.net web app that I am doing reads and adds to a database.
Everything works fine and happens instantly. I recently added an update and
it takes a long time to finish. I was wondering if there was anyone else who
experenced this problem and if there are any ways around it?
Dim MySQL As String
MySQL = "UPDATE db SET Var1 = 'Y' WHERE aimtno = " & tnum & "
and abook = " & tbook
Dim strConn As String = "Provider=IBMDA400; Data
source=datasource; user id = " & tuserid & "; password = " & tpass & ""
Dim MyConn As New OleDbConnection(strConn)
Dim cmd As New OleDbCommand(MySQL, MyConn)
cmd.Connection.Open()
cmd.ExecuteNonQuery()
MyConn.Close()