- Imports System.Data.Odbc
- Dim con As New OdbcConnection("DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=mydb;UID=root;PWD=mydb:OPTION=03")
- Dim da As New OdbcDataAdapter
- da.SelectCommand = New OdbcCommand("insert into emplogin values('MTI019','venkatesh','venkatesa','venkipinki',null)", con)
- Dim ds As New DataSet
- Dim builder As CommandBehavior = CommandBehavior.SingleRow
- con.Open()
- 'The Following Line Was Bolded
- Dim builder As OdbcCommand builder
- 'Dim cmd As New OdbcCommand("insert into emplogin values()")
- da.Fill(ds, "emplogin")
- da.Update(ds, "emplogin")
Friday, June 10, 2011
insert data mysql vb.net 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment