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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking Tables with VB .NET

Status
Not open for further replies.

cosmoh2o

Programmer
Jul 22, 2002
92
US
I am new to VB .NET as it applies to MySQL databases and have a question about data integrity within MySQL. I have an application written in Visual Basic .NET that is connected to a MySQL database via ODBC and everything works great. How can I be sure that when a table in the database, say "TABLE1" is being written to no one else can access it until the transaction is through? When I used PERL, I just "locked" the table, however I can not seem to get this to work with VB .NET.

Has anyone out there ran into a similar situation and if so, how did you solve it? Any help would be great, and simple sample code would be even better :). Thanks in advance for any help.
 
I am adding a list of scores to a table and then deleting them after selecting them all. So I need some way to "lock" the SCORES table when values are being added to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top