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

  • Satisfactory Essays

    For emp table: Control File: load data infile 'emp.dat ' "var 3" into table emp fields terminated by ', ' optionally enclosed by '" ' (col1 NUMBER(4), col2 VARCHAR(2), col3 DATE, col4 VARCHAR2(15), col5 number(4), col6 number(8,2), col7 number(8,2), col8 number(2)) From Command Prompt: SQLLDR CONTROL=emp.ctl, LOG=bar.log, BAD=baz.bad, DATA=emp.dat USERID=student/student, ERRORS=999, LOAD=2000, DISCARD= toss.dis, DISCARDMAX=5 DEPT table Deptno Dname Loc 10 Accounting Boston 20 Sales…

    • 1169 Words
    • 5 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

    Oracle Express is Oracle’s express edition of their SQL database. This edition has many different features that can be used. Some of those features include; Interactive reports, Declarative BLOB support, Enhanced report printing, adding to the theme repository, Optional runtime-only installation, improved security, Application date format, and Application builder refinements. These features are used to create…

    • 452 Words
    • 2 Pages
    Good Essays
  • Good Essays

    pt2520 assignment 1

    • 466 Words
    • 2 Pages

    Oracle Express features: application builder for mobile, mobile and response themes, HTML5 charts, HTML5 item types, mobile calendar, packages applications, RESTful web services, Oracle Fail Safe, SQLJ, Oracle Developer Tools for Visual Studio .NET, Microsoft Distributed Transaction Coordinator support, Active Directory integration, Native .NET Data Provider—ODP.NET,.NET Stored Procedures.…

    • 466 Words
    • 2 Pages
    Good 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
  • Satisfactory Essays

    2. A recent trend for major commercial database developers is to offer free “Express” versions of their databases. Microsoft has SQL Express, Oracle has Oracle Express, and DB2 has DB2 Express. Go to the company websites, and look up these Express editions.…

    • 327 Words
    • 2 Pages
    Satisfactory Essays
  • 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
  • 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
  • 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
  • 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

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

    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

    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

Related Topics