Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database locks.....

Status
Not open for further replies.

Morpheus1981

Programmer
Aug 9, 2001
105
CR
We got an application that always generate locks on the database. No one can use others apps. because this application is locking. But the person who is using the application(the one which is locking) is doing nothing but consulting information. How can I prevent that to happen in Delphi(5).
 
What database are you using?

Try to use queries, by nature queries are read-only, unless you prepare them to modify data.
Another way is creating views on the database (sql-server, interbase, orcale etc). Views are read-only snaphots of the tables, and delphi would handle them like (read-only) tables.
You could prepare different views for different users, for security reasons.

Regards Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top