Hi all,
I used sample code to connect JdbcSQL from the link JdbcSQL forum link
The ExecQueryAsync works find. But when I use ExecNonQuery it returns and error.
Code and error message as follows.
I checked the server setting, Inser and Update command are allowed and I checked with VB.net program.
Can any one help me in this
Thanks
I used sample code to connect JdbcSQL from the link JdbcSQL forum link
The ExecQueryAsync works find. But when I use ExecNonQuery it returns and error.
Code and error message as follows.
B4X:
Sub ListAnimals As ResumableSub
Wait For (Connect) Complete (Success As Boolean)
If Success Then
Log("conn suces")
Try
mysql.ExecNonQuery("Insert Into Sector (SecID, SecName) Values (50,'Test') " )
Log("NonQuery: " & Success)
Catch
Success = False
Log(LastException)
End Try
CloseConnection
End If
Return Success
End Sub
java.sql.SQLException: Could not retrieve transation read-only status server
I checked the server setting, Inser and Update command are allowed and I checked with VB.net program.
Can any one help me in this
Thanks