01_Intro - IIS Windows Server

advertisement
IMS 4212 Lab: Lab Introduction
Subject—Topics
• Installing SQL Server
– Service
– Sample DBs
• Creating databases—locations
• Moving Databases
• Disabling SQL Server Express
• Modifying AutoStart characteristics of SQL Server
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
1
IMS 4212 Lab: Lab Introduction
Software Checkout
• software checkout does not "open" until after the end
of Add/Drop
• http://mis.bus.ucf.edu
• Pick up in MIS Department Office in Rm. 325
• See Dr. West’s course page for details
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
2
IMS 4212 Lab: Lab Introduction
Components to Install
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
3
IMS 4212 Lab: Lab Introduction
After clicking ADVANCED button
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
4
IMS 4212 Lab: Lab Introduction
Instance Name: Accept Default
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
5
IMS 4212 Lab: Lab Introduction
Service Account:
Use the built in system account and Local System
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
6
IMS 4212 Lab: Lab Introduction
Authentication Mode:
Leave default of Windows Authentication Mode
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
7
IMS 4212 Lab: Lab Introduction
Collation Settings: Accept default
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
8
IMS 4212 Lab: Lab Introduction
Error and Usage Settings:
Click Next (nothing selected)
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
9
IMS 4212 Lab: Lab Introduction
Proceed w/ install
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
10
IMS 4212 Lab: Lab Introduction
…installing…
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
11
IMS 4212 Lab: Lab Introduction
SQL Server 2005 Books Online
• Use this menu for quick access to the documentation
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
12
IMS 4212 Lab: Lab Introduction
Books Online: Your Quick Reference
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
13
IMS 4212 Lab: Lab Introduction
DB instances
•
•
•
•
Within SQL Server Management Studio…
Open “Object Explorer” pane
Expand registered SQL Server
Expand “Databases”
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
14
IMS 4212 Lab: Lab Introduction
Creating Databases (GUI)
• Right-click on “Databases”
• Select “New Databases…”
– Provide a “Database name”
– Click “OK”
• Should appear under Databases
– Right-click on the new database
– If not, right-click and select “Refresh”
– Note: for info about your database, right-click on your
new db and select “Properties”
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
15
IMS 4212 Lab: Lab Introduction
Where is your db?
• MDF
• LDF
2. Set paths here
1. Use the scroll
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
16
IMS 4212 Lab: Lab Introduction
Moving Databases
• Detach Database
– In the Object Explorer
– Right-click on the icon of your db
– Select All Tasks >> “Detach…”
– Click OK
• Move the MDF and LDF files
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
17
IMS 4212 Lab: Lab Introduction
Moving Databases (con’t)
• Once moved…Attach Database
– In Object Explorer right-click on the “Databases”
– Select All Tasks >> “Attach…”
– In the “Databases to attach section” click “Add…”
– In the pop-up window, browse your file system, select
the MDF file of the database to attach, and click “OK”
– Finally, click “OK” in the “Attach databases” window
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
18
IMS 4212 Lab: Lab Introduction
Role of the installed databases
•
•
•
•
master
model
tempdb
Northwind
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
19
IMS 4212 Lab: Lab Introduction
master db
• Records all the system-level information for an instance
of SQL Server.
• Holds the system tables
• For example, sysdatabases has an entry for new
database
• Do not touch
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
20
IMS 4212 Lab: Lab Introduction
model db
• Default settings of new databases
• Template for a database created on the instance of SQL
Server
• Modify an option of this database (e.g.. database size,
collation, recovery model) and any databases created
afterwards will have those modifications
• Do not delete this database
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
21
IMS 4212 Lab: Lab Introduction
tempdb
• Working area for database
• When you create temporary tables, the tables are
created in this database
• Rebuilt every time the server is started
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
22
IMS 4212 Lab: Lab Introduction
Northwind Database
• We will use the NorthWind database for many exercises
in the course.
• Find the NorthWind DB in the course Lessons page
under the Client-Server Logic lesson.
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
23
IMS 4212 Lab: Lab Introduction
Next Topic
1.
We’ll cover creating DB tables
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
24
IMS 4212 Lab: Lab Introduction
To Do List
1.
2.
3.
4.
5.
6.
Install software (after Add/Drop)
Practice
Read Chapter 1 RDBMS Basics
Read Chapter 2 Tools of the Trade
Read Chapter 5 Creating and Altering Tables
Practice some more
Dr. Lawrence West, MIS Dept., University of Central Florida
http://systems.bus.ucf.edu/lwest
25
Download