G
Guest
Hello:
I am running VB.Net to access a oracle 10g table that has a sequence.
This is what I tried:
Dim liID As Integer = 0
Dim lodcCMD As OleDbCommand = New OleDbCommand("SELECT
SUGGEST_SEQ.NextVal FROM DUAL;", odcMain)
odcMain.Open()
liID = CType(lodcCMD.ExecuteScalar(), Integer)
I get the following exception that I really don't understand:
Run-time exception thrown : System.Data.OleDb.OleDbException - One or more
errors occurred during processing of command.
ORA-00911: invalid character
Please help.
venki
I am running VB.Net to access a oracle 10g table that has a sequence.
This is what I tried:
Dim liID As Integer = 0
Dim lodcCMD As OleDbCommand = New OleDbCommand("SELECT
SUGGEST_SEQ.NextVal FROM DUAL;", odcMain)
odcMain.Open()
liID = CType(lodcCMD.ExecuteScalar(), Integer)
I get the following exception that I really don't understand:
Run-time exception thrown : System.Data.OleDb.OleDbException - One or more
errors occurred during processing of command.
ORA-00911: invalid character
Please help.
venki