SlideShare a Scribd company logo
1 of 23
 OLE DB: The OLE database protocol
Allows a program to access information in any
type of data source, and it is the basis for ADO.
Data provider: databases, spreadsheets, etc.
 ADO: ActiveX Data Objects
An Interface for OLE DB.
Allow programmers to use a standard set of
objects to refer to any OLE DB data source.
 ODBC: Open Database Connectivity
A driver manager
Used for relational databases
Program
ActiveX Data Objects
OLE DB
Provider
Data Source
OLE DB
Provider
ODBC
ODBC
Data Source
 Three types of data source names
 User DSN: usable only by you and only on the
machine currently using.
 System DSN: Any one using the machine can use.
 File DSN: Can be copied and used by other
computers with the same driver installed.
 Visual Data Manager
 Data Environments
 Data Views
 Data Report Designer
 Data Projects
 Add-Ins/Visual Data Manager
 Supports: Access, dBase, FoxPro, Paradox,
ODBC, Text files.
 Creating new database
 Managing existing database
 Query Builder, Form Wizard
 DAO
 Project/More ActiveX Designer/Data
Environment
 Data Environments are designed to be the
basis of design-time and run-time data
access. They make data available to any
forms and modules in your application.
 Right Click Connection1
Click Properties to set up database connection
Click Add Command to choose record source.
 Drag and drop fields from Command1 to
form. Text box properties:
Data Source: Data Environment1
Data Member: Command1 (Note: Data
environment can support many command
objects)
Data Field
 Access command object’s Recordset
object and Recordset object’s methods.
 Recordset’s name: rs+command name.
Ex. rsCommand1
 Properties:
EOF, BOF, RecordCount
 Methods:
MoveFirst, MoveLast, MoveNext, MovePrevious
DataEnvironment1.rsCommand1.MoveNext
IF DataEnvironment1.rsCommand1.EOF THEN
DataEnvironment1.rsCommand1.MoveLast
END IF
 View/Data View Window
 An overview of the database objects you
have in a project, such as Data
Environments, connections, data links.
 Project/Add Data Report
 Features of Data Report Designer
 Drag and Drop fields from the Data Environment
to report detail section. The DataMember and
DataField properties of the text box are
automatically set.
 Drag and Drop the Command object (Must make
sure the DataSOurce and DataMember properties
of the DataReport are set properly).
‘To preview report
DataReport1.Show
‘To print
DataReport.PrintReport
 VB projects come with built-in Data
Environments and Data Report Designer.
 Three VB database objects:
 DAO, RDO, ADO
 Two ways to work with these objects:
 VB Data controls, data-bound controls
 Programming objects
 Support the Jet database
 DAO data control
 Database property
 RecordSource property: tables, queries, SQL
statement
 RecordSet Type Property: Table, Dynaset,
Snapshot
 Able to connect to data sources such as dBase,
text files, and Excel spreadsheet.
 Project/Components/Microsoft ADO 6.0
 Double Click ADO to insert ADO
 Right Click and select ADODC Properties
 General : Source of Connection
 RecordSource:
 1 – adCmdText: SQL statement
 2 – adCmdTable: Table in the database
 4 - adCmdStoredProc
 BOF Action, EOF Action
 Command TimeOut: Amount of time in
seconds the ADO control will allow for
commands to be executed on the server.
 ConnectionString
 CursorLocation: server site, client site
 CursorType
 MaxRecords: 0 means no limit.
 RecordSource
 Forward Only: Can only move forward
through the recordset (can only
MoveNext). Use the least amount of
system resources.
 Static: Can navigate in both directions.
Unable to see changes made by other
users.
 Keyset: Can see changes made by other
users (except insertions).
 Dynamic: Use most of resources, and can
see all changes made by other users.
 ReadOnly
 Optimistic: Does not lock the file until
updates are actually applied.
 BatchOptimistic: All changes be submitted
at one time.
 Pessimistic: Lock the table the entire time
that the recordset is open.
 Determines the access rights of the user.
Read
Write
ReadWrite
ShareDenyRead: Deny other from opening
connections with read permissions.
ShareDenyWrite
ShareExclusive
ShareDenyNone: Prevent others from opening
conections with any permissions.
Thank You

More Related Content

What's hot

MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...Terry Reese
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo dbHemant Sharma
 
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...Terry Reese
 
Cataloging with MarcEdit
Cataloging with MarcEditCataloging with MarcEdit
Cataloging with MarcEditDoreen Herold
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookMuralidharan Radhakrishnan
 
RapidMiner: Word Vector Tool And Rapid Miner
RapidMiner:  Word Vector Tool And Rapid MinerRapidMiner:  Word Vector Tool And Rapid Miner
RapidMiner: Word Vector Tool And Rapid MinerDataminingTools Inc
 
Marc edit and_nonmarc_data (1)
Marc edit and_nonmarc_data (1)Marc edit and_nonmarc_data (1)
Marc edit and_nonmarc_data (1)Anoop Kumar Bajpai
 
MarcEdit and OCLC Integration -- Summer ALA 2014
MarcEdit and OCLC Integration -- Summer ALA 2014MarcEdit and OCLC Integration -- Summer ALA 2014
MarcEdit and OCLC Integration -- Summer ALA 2014Terry Reese
 
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
MarcEdit - makes the life easier (BALID Training programme on Marc 21)MarcEdit - makes the life easier (BALID Training programme on Marc 21)
MarcEdit - makes the life easier (BALID Training programme on Marc 21)Md. Zahid Hossain Shoeb
 
Using MarcEdit for batch cataloging
Using MarcEdit for batch catalogingUsing MarcEdit for batch cataloging
Using MarcEdit for batch catalogingNCLA2011
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locatorrajshreemuthiah
 
Javascript programming using the document object model
Javascript programming using the document object modelJavascript programming using the document object model
Javascript programming using the document object modelNicole Ryan
 

What's hot (20)

MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo db
 
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
 
Cataloging with MarcEdit
Cataloging with MarcEditCataloging with MarcEdit
Cataloging with MarcEdit
 
Apiload
ApiloadApiload
Apiload
 
Ado.net
Ado.netAdo.net
Ado.net
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
 
RapidMiner: Word Vector Tool And Rapid Miner
RapidMiner:  Word Vector Tool And Rapid MinerRapidMiner:  Word Vector Tool And Rapid Miner
RapidMiner: Word Vector Tool And Rapid Miner
 
Marc edit and_nonmarc_data (1)
Marc edit and_nonmarc_data (1)Marc edit and_nonmarc_data (1)
Marc edit and_nonmarc_data (1)
 
MarcEdit and OCLC Integration -- Summer ALA 2014
MarcEdit and OCLC Integration -- Summer ALA 2014MarcEdit and OCLC Integration -- Summer ALA 2014
MarcEdit and OCLC Integration -- Summer ALA 2014
 
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
MarcEdit - makes the life easier (BALID Training programme on Marc 21)MarcEdit - makes the life easier (BALID Training programme on Marc 21)
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
 
Listview to dif
Listview to difListview to dif
Listview to dif
 
Using MarcEdit for batch cataloging
Using MarcEdit for batch catalogingUsing MarcEdit for batch cataloging
Using MarcEdit for batch cataloging
 
CIS 245 Final Review
CIS 245 Final ReviewCIS 245 Final Review
CIS 245 Final Review
 
File handling
File handlingFile handling
File handling
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locator
 
File handling
File handlingFile handling
File handling
 
Mailing solution
Mailing solutionMailing solution
Mailing solution
 
Javascript programming using the document object model
Javascript programming using the document object modelJavascript programming using the document object model
Javascript programming using the document object model
 
Data loader.ppt
Data loader.pptData loader.ppt
Data loader.ppt
 

Similar to OLE DB, ADO and ODBC Database Protocols

Similar to OLE DB, ADO and ODBC Database Protocols (20)

Ado
AdoAdo
Ado
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
 
Microsoft data access components
Microsoft data access componentsMicrosoft data access components
Microsoft data access components
 
Ado Net
Ado NetAdo Net
Ado Net
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
 
Quantopix analytics system (qas)
Quantopix analytics system (qas)Quantopix analytics system (qas)
Quantopix analytics system (qas)
 
Project seminar
Project seminarProject seminar
Project seminar
 
ODF Mashups
ODF MashupsODF Mashups
ODF Mashups
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
 
Ado object
Ado objectAdo object
Ado object
 
Salesforce
SalesforceSalesforce
Salesforce
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questions
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
ILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office IntegrationILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office Integration
 
Ado.net
Ado.netAdo.net
Ado.net
 
OPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATIONOPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATION
 
unit 3.docx
unit 3.docxunit 3.docx
unit 3.docx
 

More from Rai Saheb Bhanwar Singh College Nasrullaganj (20)

lec34.ppt
lec34.pptlec34.ppt
lec34.ppt
 
lec33.ppt
lec33.pptlec33.ppt
lec33.ppt
 
lec31.ppt
lec31.pptlec31.ppt
lec31.ppt
 
lec32.ppt
lec32.pptlec32.ppt
lec32.ppt
 
lec42.ppt
lec42.pptlec42.ppt
lec42.ppt
 
lec41.ppt
lec41.pptlec41.ppt
lec41.ppt
 
lec39.ppt
lec39.pptlec39.ppt
lec39.ppt
 
lec38.ppt
lec38.pptlec38.ppt
lec38.ppt
 
lec37.ppt
lec37.pptlec37.ppt
lec37.ppt
 
lec23.ppt
lec23.pptlec23.ppt
lec23.ppt
 
lec21.ppt
lec21.pptlec21.ppt
lec21.ppt
 
lec20.ppt
lec20.pptlec20.ppt
lec20.ppt
 
lec19.ppt
lec19.pptlec19.ppt
lec19.ppt
 
lec18.ppt
lec18.pptlec18.ppt
lec18.ppt
 
lec17.ppt
lec17.pptlec17.ppt
lec17.ppt
 
lec16.ppt
lec16.pptlec16.ppt
lec16.ppt
 
lec30.ppt
lec30.pptlec30.ppt
lec30.ppt
 
lec28.ppt
lec28.pptlec28.ppt
lec28.ppt
 
lec27.ppt
lec27.pptlec27.ppt
lec27.ppt
 
lec26.ppt
lec26.pptlec26.ppt
lec26.ppt
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 

OLE DB, ADO and ODBC Database Protocols

  • 1.
  • 2.
  • 3.  OLE DB: The OLE database protocol Allows a program to access information in any type of data source, and it is the basis for ADO. Data provider: databases, spreadsheets, etc.  ADO: ActiveX Data Objects An Interface for OLE DB. Allow programmers to use a standard set of objects to refer to any OLE DB data source.  ODBC: Open Database Connectivity A driver manager Used for relational databases
  • 4. Program ActiveX Data Objects OLE DB Provider Data Source OLE DB Provider ODBC ODBC Data Source
  • 5.  Three types of data source names  User DSN: usable only by you and only on the machine currently using.  System DSN: Any one using the machine can use.  File DSN: Can be copied and used by other computers with the same driver installed.
  • 6.  Visual Data Manager  Data Environments  Data Views  Data Report Designer  Data Projects
  • 7.  Add-Ins/Visual Data Manager  Supports: Access, dBase, FoxPro, Paradox, ODBC, Text files.  Creating new database  Managing existing database  Query Builder, Form Wizard  DAO
  • 8.  Project/More ActiveX Designer/Data Environment  Data Environments are designed to be the basis of design-time and run-time data access. They make data available to any forms and modules in your application.
  • 9.  Right Click Connection1 Click Properties to set up database connection Click Add Command to choose record source.  Drag and drop fields from Command1 to form. Text box properties: Data Source: Data Environment1 Data Member: Command1 (Note: Data environment can support many command objects) Data Field
  • 10.  Access command object’s Recordset object and Recordset object’s methods.  Recordset’s name: rs+command name. Ex. rsCommand1  Properties: EOF, BOF, RecordCount  Methods: MoveFirst, MoveLast, MoveNext, MovePrevious
  • 12.  View/Data View Window  An overview of the database objects you have in a project, such as Data Environments, connections, data links.
  • 13.  Project/Add Data Report  Features of Data Report Designer  Drag and Drop fields from the Data Environment to report detail section. The DataMember and DataField properties of the text box are automatically set.  Drag and Drop the Command object (Must make sure the DataSOurce and DataMember properties of the DataReport are set properly).
  • 14. ‘To preview report DataReport1.Show ‘To print DataReport.PrintReport
  • 15.  VB projects come with built-in Data Environments and Data Report Designer.
  • 16.  Three VB database objects:  DAO, RDO, ADO  Two ways to work with these objects:  VB Data controls, data-bound controls  Programming objects
  • 17.  Support the Jet database  DAO data control  Database property  RecordSource property: tables, queries, SQL statement  RecordSet Type Property: Table, Dynaset, Snapshot  Able to connect to data sources such as dBase, text files, and Excel spreadsheet.
  • 18.  Project/Components/Microsoft ADO 6.0  Double Click ADO to insert ADO  Right Click and select ADODC Properties  General : Source of Connection  RecordSource:  1 – adCmdText: SQL statement  2 – adCmdTable: Table in the database  4 - adCmdStoredProc
  • 19.  BOF Action, EOF Action  Command TimeOut: Amount of time in seconds the ADO control will allow for commands to be executed on the server.  ConnectionString  CursorLocation: server site, client site  CursorType  MaxRecords: 0 means no limit.  RecordSource
  • 20.  Forward Only: Can only move forward through the recordset (can only MoveNext). Use the least amount of system resources.  Static: Can navigate in both directions. Unable to see changes made by other users.  Keyset: Can see changes made by other users (except insertions).  Dynamic: Use most of resources, and can see all changes made by other users.
  • 21.  ReadOnly  Optimistic: Does not lock the file until updates are actually applied.  BatchOptimistic: All changes be submitted at one time.  Pessimistic: Lock the table the entire time that the recordset is open.
  • 22.  Determines the access rights of the user. Read Write ReadWrite ShareDenyRead: Deny other from opening connections with read permissions. ShareDenyWrite ShareExclusive ShareDenyNone: Prevent others from opening conections with any permissions.