this is seshu i am creating an application for chekin/checkouttime
for that i need to insert data in to mysql for that i know the command in mysql and even how to do in vb.net but the problem is i dont know how to command in vb and update that to mysql
see i was stuck here
Expand|Select|Wrap|Line Numbers
- 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")
i mean the command in bold