database system

10
DATABASE SYSTEM VB LINK TO MS-SQL

Upload: hansel

Post on 07-Jan-2016

26 views

Category:

Documents


0 download

DESCRIPTION

DATABASE SYSTEM. VB LINK TO MS-SQL. Visual Programming. Chapter 6. 6.5 Database Link To Microsoft SQL (Note: You must create database at chapter 9 Ms-SQL Server before linking database with Visual Basic interface). Select Project -> Component. 6.5 Database Link To Microsoft SQL. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: DATABASE SYSTEM

DATABASE SYSTEM

VB LINK TO MS-SQL

Page 2: DATABASE SYSTEM

2

Visual Programming Chapter 6

Select Project -> Component

Page 3: DATABASE SYSTEM

3Select Microsoft ADO Data Control 6.0 (OLEDB). Then click command button Apply and OK.

Page 4: DATABASE SYSTEM

4

The Adodc control/object will appear at the ToolBox

Page 5: DATABASE SYSTEM

5

Select the Adodc. Then draw the object on the form.

Change the Property Name to adoPatient.

Change Property Caption to Patient Record

Page 6: DATABASE SYSTEM

6Select the ConnectionString and Property Pages will appear.

Page 7: DATABASE SYSTEM

7

Select Use Connection String and click command button Build.

The Data Link Properties will appear.

Then select Microsoft OLE DB Provider For SQL Server.

Page 8: DATABASE SYSTEM

8

Select or enter Server name then Select the Database on the server

Page 9: DATABASE SYSTEM

9

Select the RecordSource – Patient

Page 10: DATABASE SYSTEM

10

Select Data Source – adoPatient Then Select Data Field – Patient ID.

Repeat the same process for the other fields – IC Number, Address and Tel No.