0

I use Oracle SQL developer and I made a connection to my database with the system user, after I created a user and made a another connection when I try to run I get the SQL Error:

"ORA-01747: invalid user.table.column, table.column, or column specification"

This is my code for insert function:

    Dim sql As String = "INSERT INTO SCHEME(CODE,DESC)" & _
    " VALUES (:CODE,:DESC)"

Dim cmd As New OracleCommand(sql, conn)

cmd.Parameters.Add(New OracleParameter("CODE", txtCODE.Text))
cmd.Parameters.Add(New OracleParameter("DESC", txtDESC.Text))
2
  • The error pretty much tells you... Commented Apr 28, 2014 at 3:56
  • It seems you should predix your table name with the name of schema it belongs to. Commented Apr 28, 2014 at 5:25

1 Answer 1

1

Try this code instead of your code

Dim sql As String = @"INSERT INTO SCHEME(CODE,DESC) VALUES (@CODE,@DESC)"

Dim cmd As New OracleCommand(sql, conn)

cmd.Parameters.Add(New OracleParameter("@CODE", txtCODE.Text))
cmd.Parameters.Add(New OracleParameter("@DESC", txtDESC.Text))

and also your problem is invalid user.table.column, table.column, or column specification

So please check your table and column name...

That's it..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.