Simple Update Doesn't Work
Posted: Thu 13 Oct 2011 20:07
I'm testing out the devart to see how it works w/ oracle. The oraclereader works just fine but the small sample code i'm using to test the executenonquery seems to hang.
I'm using visual studio express 2010
I tried to use dbMonitor and upon using "Imports Devart.Data.Oracle.OracleMonitor" does not seem to resolve either after I've added all the devart references.
I've search unsuccessfully in the forums prior to this post. Time to stop spinning wheels. Thanks in advance for any direction.
Here's the sample code
removed try/catch
Dim strOracleConnect As String = XXXXXXXXXXXXXXXX
Dim myOracleConnection As New OracleConnection(strOracleConnect)
'Try
myOracleConnection.Open()
Dim command As OracleCommand = myOracleConnection.CreateCommand
command.CommandText = " update inventories " & _
" set " & _
" category = 'PPP' " & _
" where istock_num = '5555555' " 'it is a string
Dim rowsAffected As Integer = command.ExecuteNonQuery()
myOracleConnection.Close()
I'm using visual studio express 2010
I tried to use dbMonitor and upon using "Imports Devart.Data.Oracle.OracleMonitor" does not seem to resolve either after I've added all the devart references.
I've search unsuccessfully in the forums prior to this post. Time to stop spinning wheels. Thanks in advance for any direction.
Here's the sample code
removed try/catch
Dim strOracleConnect As String = XXXXXXXXXXXXXXXX
Dim myOracleConnection As New OracleConnection(strOracleConnect)
'Try
myOracleConnection.Open()
Dim command As OracleCommand = myOracleConnection.CreateCommand
command.CommandText = " update inventories " & _
" set " & _
" category = 'PPP' " & _
" where istock_num = '5555555' " 'it is a string
Dim rowsAffected As Integer = command.ExecuteNonQuery()
myOracleConnection.Close()