SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Using MarcEdit for batch cataloging
Using MarcEdit for batch catalogingUsing MarcEdit for batch cataloging
Using MarcEdit for batch cataloging
NCLA2011
 

La actualidad más candente (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 a vishual basic data base Pankaj

Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
Zishan yousaf
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
Mubarak Hussain
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
Phúc Đỗ
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
Phúc Đỗ
 
OPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATIONOPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATION
SUMIT KUMAR
 

Similar a vishual basic data base Pankaj (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
 

Más de Rai Saheb Bhanwar Singh College Nasrullaganj

Más de 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
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

vishual basic data base Pankaj

  • 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.