Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I set connection to read-only?

843854May 16 2002 — edited May 17 2002
Hi!
I have made an application that allows the user to make SQL-queries against a MS SQL server. How do I set the connection to read only without changing the user roles in the db, ie I dont want the users to use a DELETE query for instance.

There is a method in java.sql.Connection callled setReadOnly(boolean), but after setting it to true I can still delete rows. Can anyone help me please?

regards Johan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2002
Added on May 16 2002
5 comments
875 views