Preview

database connectivity in vb

Satisfactory Essays
Open Document
Open Document
421 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
database connectivity in vb
Ex. No.:

DATABASE CONNECTIVITY
Date:

AIM:
To Working with VB Forms and Connect the Oracle 10g to Visual Studio 6.0 for Database Connectivity

PROCEDURE:

Step 1: Start All ProgramsVisual Studio 6.0  Choose Standard Exe Form
Step 2: Choose Project In Menubar And Choose The Ado Data Control 6.0
Step 3: Connect The Adodc To Microsoft Oledb Provider For Oracle
Step 4: Data Link Properties Type The Username And Password
Step 5: Click The Test Connection To Make The Connectivity Success

DATABASE CONNECTIVITY:

Step 1:
Add Microsoft Ado Data Control6.0 (OLDEB) From Project  Component For Connectivity

STEP 2:
Establish Connection through Connection String From Property Window

STEP 3:

Build Connection through Select Microsoft OLEDB Provider For Oracle

Step 4:

Entering username and password for check test connection

Step 5:

Test connection successfully made.

ENO
ENAME
SALARY
200
ravi kumar
6000
1001 anbu 15000
1002
bala
20000

Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim sql As String

Private Sub Command1_Click()
If (text1.Text = "" Or Text2.Text = "" Or Text3.Text = "") Then
MsgBox ("enter correct data")
Else
Dim str_add As String str_add = "insert into emp values( " & text1.Text & " , ' " & Text2.Text & " ' ," & Text3.Text & " )" con.Execute str_add
MsgBox ("inserted") text1.Text = " "
Text2.Text = " "
Text3.Text = " "
End If
'End If
'End If
End Sub

Private Sub Command2_Click()
If (text1.Text = "") Then
MsgBox ("enter the employee number do u want delete")
Else
Dim str As String str = "delete from emp where eno= " & text1.Text con.Execute str
MsgBox ("record deleted") text1.Text = " "
Text2.Text = " "
Text3.Text = " "
End If
End Sub

You May Also Find These Documents Helpful

  • Good Essays

    * In an inventory order system, you don't want an order to be deleted if there are inventory order items, or those items will be orphaned.…

    • 579 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Database Sql Server

    • 328 Words
    • 2 Pages

    Data mining uses business intelligence tools and techniques on a variety of data sources brought together in a data warehouses. true…

    • 328 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Data base administrator

    • 529 Words
    • 3 Pages

    (10) Experience and knowledge in migrating code, database changes, data and menus through the various stages of the development life cycle.…

    • 529 Words
    • 3 Pages
    Satisfactory Essays
  • Best Essays

    Database Administrator

    • 3175 Words
    • 13 Pages

    Abby states “that if you know who you are and you 're true to yourself, you will be more confident and assertive in your work environment.” We need to understand who we are as a person then we can be able to truly reach for success.…

    • 3175 Words
    • 13 Pages
    Best Essays
  • Better Essays

    During Week 1, the primary learning activity is to set up the programming and database environments that you will use in completing the course labs. We will investigate TCO 5 by learning how to use Visual Studio to connect to a MySQL database. This…

    • 1818 Words
    • 8 Pages
    Better Essays
  • Good Essays

    One of the most important elements of a computer based information system is the database. A database is a collection of records or information that is stored in a computer in a structured manner so that information can be stored, managed, and retrieved. Databases are very useful for manipulating large amounts of data and producing reports and documents. This paper takes a look at the Oracle database system and its usage within my organization.…

    • 592 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Vbp Case Study

    • 599 Words
    • 3 Pages

    On measurement program for clinical processes are "hospital IQR" which scores, "clinical process of care and "patient experience of care." The following are the processes of care: Fibrinolytic therapy received within 30 minutes of hospital arrival (AMI);…

    • 599 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Barangay Information System

    • 8259 Words
    • 36 Pages

    Zak, 2012 stated that VB is an easy application to learn because of its graphical user interface.…

    • 8259 Words
    • 36 Pages
    Good Essays
  • Satisfactory Essays

    Ocean Tours Visual Basic

    • 1010 Words
    • 5 Pages

    Program Name: Ocean Tours Trip Selection ' Author: Fernando Fresnillo ' Date: 03/09/2012 ' Purpose: The Ocean Tours Trip Selection application determines the ' ocean tours available and calculates the cost of the tour. Option Strict On Public Class frmTours ' Class variables Private _intTwoHours As Integer = 2 Private _intThreeHours…

    • 1010 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Variable and Meal Price

    • 1236 Words
    • 9 Pages

    5.) When an argument is passed by reference, the module can modify the argument in the…

    • 1236 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

            Needs to be an Oracle DBA Needs to have knowledge of Oracle Application Fundamentals Needs to have Concept of Oracle EBS Architecture Expertise in Oracle EBS Installation and Configuration Expertise in application of Patches and Upgrading Applications Cloning of Application and Database to create new support instance Managing Customizations of Applications User Access Management…

    • 500 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    adfadf

    • 268 Words
    • 2 Pages

    Lesson A: Contestant Solution Contestant Solution’s Codes: Public Class frmMain Private Sub btnExit_Click(ByVal sender As Object, ByVal e As System. EventArgs) Handles btnExit.…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A1 Database Mgmt

    • 260 Words
    • 5 Pages

    Query1: find the treatment given to Jackson, and who is his doctor with his address?…

    • 260 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Understanding technology is important when managing companies that have computer technology as their backbone. Knowing this information helps the employees responsible for information management to make informed choices about how to implement technology. These decisions allow the manager to successfully use time and resources in apparently menacing tasks. This is shown in the two scenarios.…

    • 848 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Being placed in scenarios gets you out of the student mindset and puts you in a unique decision making state of mind. I enjoy these exercises to ensure there is an understanding of what it takes to get into that state of mind.…

    • 661 Words
    • 2 Pages
    Satisfactory Essays

Related Topics