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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.