Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database accessing in .NET
#1
.NET is the technology that .NET applications use to interact with a database.

Although it’s technically possible to organize data into tables and store it on the hard drive in one or more files (perhaps using a standard like XML), this approach wouldn’t be very flexible. Instead, a web application needs a full relational database management system (RDBMS), such as SQL Server. The RDBMS handles the data infrastructure, ensuring optimum performance and reliability. For example, the RDBMS takes the responsibility of providing data to multiple users simultaneously, disallowing invalid data, and committing groups of actions at once using transactions.

In most ASP.NET applications, you’ll need to use a database for some tasks. Here are some basic examples of data at work in a web application:
• E-commerce sites (like Amazon) use detailed databases to store product catalogs. They also track orders, customers, shipment records, and inventory information in a huge arrangement of related tables.
• Search engines (like Google) use databases to store indexes of page URLs, links, and keywords.
• Knowledge bases (like Microsoft Support) use less structured databases that store vast quantities of information or links to various documents and resources.
• Media sites (like The New York Times) store their articles in databases.
You probably won’t have any trouble thinking about where you need to use database technology in an ASP.NET application. Even a simple e-mail address submission form that uses a back-end database to store a list of potential customers or contacts. This is where ADO.NET comes into the picture. ADO.NET is a technology designed to let an ASP.NET program (or any other .NET program, for that matter) access data.

ADO.NET

ADO stands for ActiveX Data Object.
ADO .NET concept mainly used to connect and transact with the DB Systems.
ADO .Net provides a data access model with the following objects.
Objects: (a)Consumer objects,(b)Provider Objects
Provider object are known as connected objects, Some of the provider objects in ado .net varies
based on the type of DB system.
Provider objects :
SQL server: SqlConnection, SqlDataReader, SqlCommand, SqlDataAdapter.
Oracle: OracleConnection, OracleCommand, OracleDataReader, OracleDataAdapter
(Open DB Connectivity):
ODBC: OdbcConnection, OdbcCommand, OdbcDataReader, OdbcDataAdapter
(Object Linking and DB Embedding):
OLEDB: OledbConnection, OledbCommand, OledbDataReader, OledbDataAdapter.
OLEDB & ODBC mainly used to connect any type of DB systems like
• SQL Server
• Oracle
• DB2
• MS Access
ODBC is a 3rd party control or tool installed within OS.
OLEDB is built-in within the .NET Framework.
OLEDB is secure & faster compare to ODBC.


Visit Us At: www.cegonsoft.com
Cegonsoft
Reply
#2
Advertising another website?
Or a bot? Can't tell
PHP Code:
while(posting) {
    
postCount++;
    
happiness++;

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  database problem danjohnson 0 1,259 11-13-2012, 10:56 PM
Last Post: danjohnson
  Creating and inserting data into a PHP and MySQL Database Peter L 9 4,638 03-24-2012, 10:49 AM
Last Post: Haxalot
  php write to mysqli database haphazard 4 2,257 12-10-2011, 08:28 AM
Last Post: ๖ۣۜмσg тιмєz
  how to open a 750 mb database,sql file? etc 17 7,477 08-21-2011, 03:57 AM
Last Post: AceInfinity
  EZSQL The PHP Database Class Omniscient 10 6,532 05-31-2011, 09:56 AM
Last Post: 0xE9

Forum Jump:


Users browsing this thread: 1 Guest(s)