[Migrated content. Thread originally posted on 14 August 2008]
I used the sample program that connects to a database, creates table, inserts rows, updates a row and deletes a row.I modified the program a little bit. I commented out the table creation part because I don't have permission.
After I compiled and ran the program, I found out that the program failed to do the INSERT. It gave me an error of SQLCODE = -1, SQLSTATE = 42000 and SQLERRMC = Attempt to execute nonexistent, unprepared or invalid statement SQLIST.
I commented out the INSERT part and inserted records mannually. I recompiled and ran again. This time the program was able to do SELECT and FETCH statements and it failed to do the UPDATE statement. I got the same error like above.
I commented out the UPDATE part and the program failed again at DELETE statement woth the same error message.
It looks like I only have ready-only permission.
Can anyone help?
Thanks
Anthony Tran



