tips for connecting vb.net to a database

4
Website: www.synapseindia.com Email: [email protected] Contact No: +1-855-796-2773 Follow Us:

Upload: keeley-hawes

Post on 14-Dec-2015

56 views

Category:

Documents


1 download

DESCRIPTION

Visual Basic.NET is a programming language offered from Microsoft that is best suitable with multiple development needs. This language is well incorporated with multiple tools with the end goal of rapid application development.

TRANSCRIPT

Page 2: Tips for connecting VB.NET to a database

All the applications interact with a database, firstly, to recover the data stored in the database and present it in an understanding way, and secondly, to upgrade the database by embedding, modifying and removing data. A part of the .Net framework, Microsoft ActiveX Data Objects.Net (ADO.Net) is a model that is utilized by the .Net applications for recovering, accessing and upgrading data.

ADO.Net Object Model

ADO.Net object model is the organized process flow through multiple components. The object model is shown below:

The data stored in the database is recovered by the help of data provider. Numerous components of the data provider recover data for the application and upgrade data.

Website: www.synapseindia.comEmail: [email protected] No: +1-855-796-2773

Follow Us:

Tips for connecting VB.NET to a database

Page 3: Tips for connecting VB.NET to a database

Dataset and data reader are the two different options through an application accesses data.

• Datasets store information in a disconnected cache and the application recovers data from it.

• Data readers give data to the application in a read-only and forward-only mode.

Data Provider

It is utilized for interfacing with a database, executing given commands and recovering data, putting it in a dataset, perusing the retrieved data as well as upgrading the database.

As per VB. NET Application Development India, the data provider in ADO.Net resides four objects. These are:

1. Connection: This is utilized to make a connection with a data source.

2. Command: It is a SQL statement utilized to retrieve, insert, erase or alter data in a data source.

3. DataReader: It offers to recover data from a data source in a read or forward-only mode.

4. DataAdapter: This is imperative to the working of ADO.Net since data is exchanged to and from a database through a data adapter. It recovers information from a database into a dataset and upgrades the database.

The followings are the diverse sorts of data providers included in ADO.Net.

• Data provider of the .Net Framework for SQL Server offers access to Microsoft SQL Server.

• Data provider of the .Net Framework for OLE DB gives access to data sources disclosed by utilizing OLE DB.

• Data provider of the .Net Framework for ODBC - gives access to data sources disclosed by ODBC.

Website: www.synapseindia.comEmail: [email protected] No: +1-855-796-2773

Follow Us:

Page 4: Tips for connecting VB.NET to a database

• Data provider of the .Net Framework for Oracle provides access to Oracle data source.

• The Entity Client supplier empowers accessing data through Entity Data Model (EDM) applications.

DataSet

Dataset is a disconnected, cached records that recover from a database. At the point when a connection is built up with the database, the data adapter develops a dataset and stores data in it. Once the data is recovered and saved in a dataset, the connection with the database is automatically broken and this architecture is known as disconnected architecture.

Website: www.synapseindia.comEmail: [email protected] No: +1-855-796-2773

Follow Us: