| | |
Retrieve data from MYSQL using VB.NET
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi ALL,
Plz tell me how to retrieve data from mysql using vb.net as frontend.
I created database in mysql and able to insert data from vb.net but i dont know how to retrieve data from mysql. Plz help me to perform this action. Plz post your reply for my question....
Regards,
Karthikeyan.
Hey cee_kathi,
Have u solved your problem in retriving data.. By the way i have my code here check it out:
Imports MySql.Data.MySqlClient
Imports System.Data
Public Class Form1
'Write your own Database code in VB .NET Tutorial using MySQL
'The Connection Object
'Dim objConn As MySqlConnection
'Dim objDataAdapter As MySqlDataAdapter
'Dim objDataset As DataSet
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
Dim objConn As MySqlConnection
Dim objDataset As New DataSet
Dim objDataAdapter As MySqlDataAdapter
Dim sqlConn As String
objConn = New MySqlConnection("server=localhost;userid=root;password=password;database=mydatabase")
objConn.Open()
sqlConn = "select * from movie"
objDataAdapter = New MySqlDataAdapter(sqlConn, objConn)
objDataAdapter.Fill(objDataset, "tblMovie")
MsgBox("The Connection is Now 'OPEN'")
objConn.Close()
MsgBox("The Connection is Now 'CLOSE'")
txtTitle.Text = objDataset.Tables("tblMovie").Rows(1).Item(1)
txtYear.Text = objDataset.Tables("tblMovie").Rows(1).Item(2)
End Sub
this is my references...
http://www.homeandlearn.co.uk/NET/nets12p5.html
hope this one would help you.
By the way can you help me can you give your source code for add data in mysql database.
Thnx..
Carl
![]() |
Similar Threads
- Store and retrieve image from mysql db with JSP (JSP)
- Transfer data between 2 mySQL servers (VB.NET)
- How to retrieve data from one form to another/ through Data Base (VB.NET)
- retrieve data from MySQL (Visual Basic 4 / 5 / 6)
- can't binding an autoincrement field of mysql data base from vb.net (VB.NET)
- Retrieve data from access to vb.net...urgent (VB.NET)
- retrieving a single cell of data from a MySQL database (PHP)
- VB.Net: Problem Retrieve data from ListView (VB.NET)
- retrieve data by VB.Net (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: tab set
- Next Thread: Add a new record to access database in VB 2005
| Thread Tools | Search this Thread |
.net .net2008 2008 access account advanced application array basic beginner browser button buttons center click code combo cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic excel exists fade filter forms ftp generatetags html images input insert intel internet listview map mobile module monitor msaccess net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing problem regex right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey table temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year






