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

MySQL and VB .NET

Status
Not open for further replies.

cosmoh2o

Programmer
Jul 22, 2002
92
US
Does anybody out there know how to lock a table in MySQL using VB .NET and the myodbc driver? I have looked all over the internet for how this can be done and can find no answers. ANY help/hint would be great. Thanks to anyone with any ideas.
 
I am new to VB .NET and MySQL and the info sounds like what I need. Thank you for responding, however I have a question. Do you know how to implement it in code? Below is a sample of some of the code:

Dim c as new OdbcCommand()
Dim conn as new OdbcConnection("DSN=mysql_dsn")
conn.Open()
c.Connection = conn
c.CommandText = "insert into A values('x','y','z')"
c.executenonquery()
conn.Close()

I would like to "lock" the table A before inserting any values. In Java or PERL I would just execute a "lock" command but I am not sure how to do it in VB .NET.
Once again, thank you for your response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top