• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Data Bases andADO.NET
Relational Databases
Most data handling today done with relationaldatabases
Logical representations of data that allowrelationships among data to be considered withoutconcern for the physical structure of the dataComposed of tables (like spreadsheets)Lots of proprietary formatsSome database sources:
Microsoft SQL ServerAccessOracleSybase
Microsoft ADO.NET can handle data from multiplelocations (servers) stored in different formats
 
ADO.NET
Based on Microsoft’s ActiveX Data Objects
Data stored and transferred in Extensible MarkupLanguage (XML)Allows simple access to database data in manyformats
Easy-to-use classes represent tables, columns, rows insiderelational databasesIntroduces DataSet class representing a set of data fromrelated tables encapsulated as a single unit preserving theintegrity of the relationships between them
Basic types of database connections:
SQLClient for SQL ServerOleDbfor all other database formats
Can be used to obtain/update data from sources such as Access,Oracle, Sybase, DB2, etc.
Many others supported
Database Terminology
Each database file can hold multiple tablesA table:
Each row represents data for one item
Called a record
Each column used to store a different dataelement
Elements represented in columns are called fields
Last NameFirst NamePhone---------------------------------------------SmithJohn777-1111JonesMary777-2222RecordsFields
 
Database Terminology, continued
Primary Key Field
Used to identify a record in a tableA field that contains unique data not duplicated inother records in the table
e.g., social security number for employees
Current Record
Anytime a table is open, one record is considered tobe the current record
As we move from record to record in a table the currentrecord changes
 
Queries
A queryretrieves information from adatabaseSQL(Structured Query Language) is thestandard for expressing queries
We won’t need to be experts in using it sinceVisual Studio .NET provides a “QueryBuilder”tool to construct SQL queries
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...