Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Yesterday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Wednesday at 10:50 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
VB.NET danna kattiya poddak annako.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Core" data-source="post: 7601803" data-attributes="member: 263471"><p>I can see you don't have a basic idea how DataBases work,first of all I can give you an advice honesty understand the theory then do the practicals.</p><p></p><p>there are lot of ways you can connect with a database the easiest way is </p><p>through a DataSet. and using a DataAdapter</p><p></p><p>Dim _dataSet as new DataSet()</p><p>Dim _dataAdapter as new System.Data.OleDbDataAdapter()</p><p>Dim _con as new System.Data.OleDbConnection()</p><p></p><p>Dim _commandString as String = "SELECT * From tableName";</p><p>'remember if you want to get data from specific column then append</p><p>'WHERE columnName=data (mostly the key) the it will return only that row</p><p></p><p>Dim _com as new System.Data.OleDbCommand(_commandString ,_con);</p><p></p><p>then made the connection string</p><p>_con.ConnectionString = "in here you should give the connection string"</p><p>it may depend on which version use </p><p></p><p>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDB Database Password=MyDbPassword;</p><p></p><p>the OLEDB 12 is the provider which handle the 2007 version of Access DataBases</p><p>so it may be changed if that's 2003 or older</p><p></p><p>if you want to change the command text later use</p><p>_com.SelectCommand.CommandTet = "your command goes here"</p><p></p><p>__dataAdapter.Fill(_dataSet,"Table\'s name of the dataSet);</p><p></p><p>now you have made the connection and prepare everything now just open the connection</p><p>_con.Open() 'then it will fill the DataSet from DataBase where you can manipulate your data while in the program.</p><p></p><p>//now use your commands to work with DataSet </p><p>//it uses </p><p>Dim _row as DataRow = _dataSet.Tables["tablesName"].Rows[0]</p><p>which will return the row number 0 in the tablesName table in the DataSet</p><p></p><p>if you want to finally update the DataBase use</p><p></p><p>CommandBuilder namespace</p><p></p><p>but remember if you use</p><p>_dataAdapter.Update(_dataSet,"the table where data in the dataset)</p><p>you gotta use CommandBuilder as well.</p><p></p><p>finally close and dispose everything</p><p>_dataSet.Dispose()</p><p>_dataAdapater.Dispose()</p><p>_con.Close() </p><p>_con.Dispose()</p></blockquote><p></p>
[QUOTE="Core, post: 7601803, member: 263471"] I can see you don't have a basic idea how DataBases work,first of all I can give you an advice honesty understand the theory then do the practicals. there are lot of ways you can connect with a database the easiest way is through a DataSet. and using a DataAdapter Dim _dataSet as new DataSet() Dim _dataAdapter as new System.Data.OleDbDataAdapter() Dim _con as new System.Data.OleDbConnection() Dim _commandString as String = "SELECT * From tableName"; 'remember if you want to get data from specific column then append 'WHERE columnName=data (mostly the key) the it will return only that row Dim _com as new System.Data.OleDbCommand(_commandString ,_con); then made the connection string _con.ConnectionString = "in here you should give the connection string" it may depend on which version use Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDB Database Password=MyDbPassword; the OLEDB 12 is the provider which handle the 2007 version of Access DataBases so it may be changed if that's 2003 or older if you want to change the command text later use _com.SelectCommand.CommandTet = "your command goes here" __dataAdapter.Fill(_dataSet,"Table\'s name of the dataSet); now you have made the connection and prepare everything now just open the connection _con.Open() 'then it will fill the DataSet from DataBase where you can manipulate your data while in the program. //now use your commands to work with DataSet //it uses Dim _row as DataRow = _dataSet.Tables["tablesName"].Rows[0] which will return the row number 0 in the tablesName table in the DataSet if you want to finally update the DataBase use CommandBuilder namespace but remember if you use _dataAdapter.Update(_dataSet,"the table where data in the dataset) you gotta use CommandBuilder as well. finally close and dispose everything _dataSet.Dispose() _dataAdapater.Dispose() _con.Close() _con.Dispose() [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom