SlideShare a Scribd company logo
vishual basic data base Pankaj
vishual basic data base Pankaj
 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 (20)

PPTX
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
Terry Reese
 
PPTX
Introduction to mongo db
Hemant Sharma
 
PPTX
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
Terry Reese
 
PPTX
Cataloging with MarcEdit
Doreen Herold
 
TXT
Apiload
samah jawabreh
 
PPT
Ado.net
dina1985vlr
 
PPT
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
PPTX
RapidMiner: Word Vector Tool And Rapid Miner
DataminingTools Inc
 
PPT
Marc edit and_nonmarc_data (1)
Anoop Kumar Bajpai
 
PDF
MarcEdit and OCLC Integration -- Summer ALA 2014
Terry Reese
 
PPTX
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
Md. Zahid Hossain Shoeb
 
DOC
Listview to dif
Chen Stephen
 
PPTX
Using MarcEdit for batch cataloging
NCLA2011
 
PPT
File handling
SabahtHussein
 
PPTX
uniform resource locator
rajshreemuthiah
 
PDF
File handling
RoshanMaharjan13
 
PPS
Mailing solution
Webspiders Interweb Pvt. Ltd.
 
PPT
Javascript programming using the document object model
Nicole Ryan
 
PPSX
Data loader.ppt
ChethanGowdaCoorg
 
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
Terry Reese
 
Introduction to mongo db
Hemant Sharma
 
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
Terry Reese
 
Cataloging with MarcEdit
Doreen Herold
 
Ado.net
dina1985vlr
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
RapidMiner: Word Vector Tool And Rapid Miner
DataminingTools Inc
 
Marc edit and_nonmarc_data (1)
Anoop Kumar Bajpai
 
MarcEdit and OCLC Integration -- Summer ALA 2014
Terry Reese
 
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
Md. Zahid Hossain Shoeb
 
Listview to dif
Chen Stephen
 
Using MarcEdit for batch cataloging
NCLA2011
 
File handling
SabahtHussein
 
uniform resource locator
rajshreemuthiah
 
File handling
RoshanMaharjan13
 
Javascript programming using the document object model
Nicole Ryan
 
Data loader.ppt
ChethanGowdaCoorg
 

Similar to vishual basic data base Pankaj (20)

PPTX
Databases
John Joseph San Juan
 
PDF
Excel
Jason Raikes
 
PPTX
LECTURE 14 Data Access.pptx
AOmaAli
 
PPTX
ADO.NET -database connection
Anekwong Yoddumnern
 
PPS
VISUAL BASIC .net data accesss vii
argusacademy
 
PPT
Marmagna desai
jmsthakur
 
PPT
Chapter 4 event it theory programming.pptx
kmkkali41
 
PDF
Presentation on the ADO.NET framework in C#
kittu57736
 
PPT
Asp #2
Joni
 
PPT
Access PPT Lesson 01-REVISED.ppt
MagdalaRodriguez1
 
PPT
Ado
abhay singh
 
DOCX
Simple ado program by visual studio
Aravindharamanan S
 
DOCX
Simple ado program by visual studio
Aravindharamanan S
 
PPTX
Ado .net
Manish Singh
 
PPT
Introduction to ado
Harman Bajwa
 
PPTX
1 introduction
Ngeam Soly
 
PPTX
Connected data classes
aspnet123
 
PPT
Access 2 day course
scacpa
 
PPTX
MS ACCESS
Dayananda Sujivan
 
LECTURE 14 Data Access.pptx
AOmaAli
 
ADO.NET -database connection
Anekwong Yoddumnern
 
VISUAL BASIC .net data accesss vii
argusacademy
 
Marmagna desai
jmsthakur
 
Chapter 4 event it theory programming.pptx
kmkkali41
 
Presentation on the ADO.NET framework in C#
kittu57736
 
Asp #2
Joni
 
Access PPT Lesson 01-REVISED.ppt
MagdalaRodriguez1
 
Simple ado program by visual studio
Aravindharamanan S
 
Simple ado program by visual studio
Aravindharamanan S
 
Ado .net
Manish Singh
 
Introduction to ado
Harman Bajwa
 
1 introduction
Ngeam Soly
 
Connected data classes
aspnet123
 
Access 2 day course
scacpa
 
Ad

More from Rai Saheb Bhanwar Singh College Nasrullaganj (20)

Ad

Recently uploaded (20)

PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Dimensions of Societal Planning in Commonism
StefanMz
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 

vishual basic data base Pankaj

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