Appendix F
Appendix F
Appendix F
Three sample databases that are related to three different database engines such as
Microsoft Access, Microsoft SQL Server 2005 and Oracle Database 10g Express Edition
(XE) are provided for this book and they can be used by all projects developed in this
book.
These three sample database files are located under three different folders that are at
the site: www.cambridge.org/9780521712354/database. The names of three folders are:
To use these three sample database files, one needs to follow the different instructions
discussed below. The prerequisite to use these sample databases is that three Database
Management Systems (DBMS) must have been installed in your machine. Three DBMS
include Microsoft Access, Microsoft SQL Server 2005 Management Studio Express and
Oracle Database 10g Express Edition (XE). Refer to Appendices B and C to finish
installing Microsoft SQL Server 2005 Management Studio Express and Oracle Database
10g XE if you have not installed those DBMS. For Microsoft Access, it should have been
installed in your machine when Microsoft Office is installed.
The Microsoft Access sample database file CSE_DEPT.mdb is located at the site:
www.cambridge.org/9780521712354/database/Access. To use this database file in any
sample database programming project that used a OleDb Data Provider in this book, you
need to perform the following operations:
1. Create a new folder named database in your root drive such as C:/.
2. Copy the sample database file CSE_DEPT.mdb from the site above and paste
it to your new created folder database in step 1.
Refer to section 4.2.2.2 in Chapter 4 to add this database file as a new Data Source
into your sample project if you want to develop a data-driven application using Visual
Basic.NET Design Tools and Wizards method.
Refer to section 4.18.1 in Chapter 4 to add this database file as a new Data Source
into your sample project if you want to develop a data-driven application using Run-Time
object method.
The Microsoft SQL Server sample database file CSE_DEPT.mdf is located at the site:
www.cambridge.org/9780521712354/database/SQLServer. To use this database file in
1
any sample database programming project that used a SQL Server Data Provider in this
book, you need to perform the following operations (suppose the Microsoft SQL Server
2005 Management Studio Express has been installed in your machine):
1. Copy the sample database file CSE_DEPT.mdf from the site above and paste
it to the Microsoft SQL Server 2005 Management Studio Express default
database file folder, which is: C:\Programm Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data in your machine.
Refer to section 4.4.1 in Chapter 4 to add this database file as a new Data Source into
your sample project if you want to develop a data-driven application using Visual
Basic.NET Design Tools and Wizards method.
Refer to section 4.18.1 in Chapter 4 to add this database file as a new Data Source
into your sample project if you want to develop a data-driven application using Run-Time
object method.
The Oracle 10g XE sample database file is composed of a group of related Data Table
files and it is located at the site: www.cambridge.org/9780521712354/database/Oracle.
Each Data Table file is a text file and it is related to a Data Table object, and totally we
have five data table files for this sample database CSE_DEPT:
login.txt
faculty.txt
course.txt
student.txt
studentcourse.txt
Each Data Table file is related to a real data table in this sample database and it was
obtained using the Unload method from our sample database CSE_DEPT in Oracle
Database 10g XE environment.
To use this database file in any sample database programming project that used an
Oracle Data Provider in this book, you need to perform the following operations (suppose
the Oracle Database 10g Express Edition has been installed in your machine):
1. Create a new user or user account named CSE_DEPT in Oracle Database 10g
XE (refer to the first part on Appendix D).
2. Load five Data Table files listed above from the site above to this new user or
user account CSE_DEPT (refer to the second part on Appendix D).
3. Setup the relationships between these five data tables using the Constraints tab
in Oracle Database 10g XE environment (refer to section 2.11.4 in Chapter 2).
Refer to Appendix E to add this database file as a new Data Source into your sample
project if you want to develop a data-driven application using Visual Basic.NET Design
Tools and Wizards method.
2
Refer to sections 4.18.1 and 4.19.2 in Chapter 4 to add this database file as a new
Data Source into your sample project if you want to develop a data-driven application
using Run-Time object method.