Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
44 views

Lesson 1 - The Database Environment and Development Process

The document provides instructions for students to set up their development environment for database practicals, including downloading Visual Studio and SQL Server Express, and attaching a sample database. It introduces the systems development life cycle (SDLC) approach of planning, analysis, design, implementation, and maintenance for solving problems. Students are given a sample problem about managing a master's degree program and are instructed to demonstrate planning, analysis, entity relationship diagramming, and logical and physical design.

Uploaded by

shania nkusi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Lesson 1 - The Database Environment and Development Process

The document provides instructions for students to set up their development environment for database practicals, including downloading Visual Studio and SQL Server Express, and attaching a sample database. It introduces the systems development life cycle (SDLC) approach of planning, analysis, design, implementation, and maintenance for solving problems. Students are given a sample problem about managing a master's degree program and are instructed to demonstrate planning, analysis, entity relationship diagramming, and logical and physical design.

Uploaded by

shania nkusi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Faculty of Computing and Informatics

Lesson 1 – Practicals
The Database Environment and Development Process
Adapted from: Modern Database Management 13th Edition
On completion of this practicals, students are expected to:

• Prepare your own development environment.

• Critically switch their mindset into practical thinking.

• Critically and analytically plan and analyse a problem.

• Create an ERD (using appropriate entity types, and


advanced ERD skills).

• Transform the ERD into the logical and physical design.

• Frame ideas thinking using the SDLC.


NOTE

Practicals are depended on the theory session.


Lecturer must execute practical after theory
session. The practical Lecturers will be notified to
start with a practical. This will maintain consistency
and quality amongst the various practical groups.
Students need to understand the theoretical
background before they can apply the theory into
practical.
Steps to Setup Environment

• Step 1: Obtain Visual Studio 2012

• Step 2: Install SQL Server 2012 Express

• Step 3: Install a Sample Database

• Step 4: Attach a Sample Database


Note

• For the purposes of the prescribed textbook, you can use


the free versions of Visual Studio and SQL Server available
for download from http://msdn.microsoft.com.

• If you are using the more full-featured versions of these


tools, you can still follow with the examples in the
prescribed textbook.

• A sample scenario: Before you can start building your house,


you must prepare your environment where you will build it.
Platforms

• Visual Studio integrated development environment (IDE)


helps developers to be productive, and it offers various types
of application templates and tools to perform most of the
application development activities.

• SQL Server is one of the most advanced relational database


management system.
Steps to prepare your Environment
Step 1 : Obtain Visual Studio 2012

a) The course requires Visual Studio 2012 to be installed on


your computer. You can download the installer ISO image
files from the MSDN Subscriptions site at
http://msdn/microsoft.com

b) Visual Studio 2012 has various software components, so


you need to decide whether you want to install them when
installing Visual Studio.
Step 2 : Install SQL Server 2012 Express

a) Go to
www.microsoft.com/betaexperience/pd/SQLEXPCTAV2/enus/
default.aspx.Decide which version you need based on your
CPU architecture
b) Download Manager will begin
c) Choose the 32-bit or 64-bit version
d) Save the file to a location on your host computer
e) Run the file to begin installation
f) After installation, make sure your SQL Server service is
running

Note: Remember the SQL Server instance name you used during
installation so you connect to and build database applications.
Step 3: Install a Sample Database

Note: SQL Server 2012 doesn’t come with a sample database,


you need to install and configure the sample database separately.

a) Go to
http://msftdbprodsamples.codeplex.com/releases/view/4004
b) Accept licence
c) Change the location to save the file, you can keep it anywhere
on your computer system, but it is recommended you keep it
with the other database files under your SQL Server instance.
d) Follow the wizard till successful installation
Step 4: Attach a Sample Database

• Attach is the process used to associated the .mdf file to


the database server so that you can start working with
the database objects and data associated with the tables.

• You need to access SQL Server Management Studio to


attach the database by following the steps in the
succeeding slides.
a) Make sure you know your SQL Server instance name through
which your SQL Server is running.

b) Open SQL Server Management Studio from your installed SQL


Server 2012 application, and in the Connect to Server dialog
box, enter localhost\<your server name> as the server name.

c) Set settings as shown in the figure on the right.


After clicking the connect button, you get taken to SQL
Server Management Studio
e) Instead of having the SQL Server Management Studio,
you can get an error after clicking the Connect button

You may receive this error for a few reasons:


• The SQL Server service instance name you provided is not
running.
• The machine name you used to specify the SQL instance is not
correct.
Note: To fix the error, specify the correct parameter, check that the SQL
Server service is started, or pass the correct machine name.
f) Attach the sample database which you have already
downloaded.
Click the attach option (preparing to attach the database)
Click Add (Attaching Database dialog)
(Locate Database Files dialog) You are taken to the DATA folder.
Select AdventureWorks_Data.mdf
Selecting .mdf database files to attach the database
Attaching database in progress
AdventureWorks listed under Databases
Solving a Problem

• The systems development life cycle can be presented by five


methodological steps:
• 1. Planning;
• 2. Analysis;
• 3. Design;
• 4. Implementation;
• 5. Maintenance.

• Considering the SDLC…

• Demonstrate practically how you plan the following problem.


• Demonstrate practically how you analyse the following problem.
• Create an ERD (must be appropriable created with entity types)
• Transform the ERD into the logical and physical design
Description of the Problem

The Faculty of Computing and Informatics at the


Namibia University of Science and Technology has
opportunities for funded full-time master’s degree
students from sub-Sahara African countries. The Faculty
offers a master’s degrees in Computer Science or
Informatics. Various processes are required to
accomplish the success of the process. The database
system should capture the processes, place reminders,
store relevant documents, etc.

You might also like