IMS 4212 Lab: Lab Introduction 1 Dr. Lawrence West, MIS Dept., University of Central Florida Subject—Topics Installing SQL Server –Service –Sample DBs Creating databases—locations Moving Databases Disabling SQL Server Express Modifying AutoStart characteristics of SQL Server
IMS 4212 Lab: Lab Introduction 2 Dr. Lawrence West, MIS Dept., University of Central Florida Software Checkout software checkout does not "open" until after the end of Add/Drop Pick up in MIS Department Office in Rm. 325 See Dr. West’s course page for details
IMS 4212 Lab: Lab Introduction 3 Dr. Lawrence West, MIS Dept., University of Central Florida Components to Install
IMS 4212 Lab: Lab Introduction 4 Dr. Lawrence West, MIS Dept., University of Central Florida After clicking ADVANCED button
IMS 4212 Lab: Lab Introduction 5 Dr. Lawrence West, MIS Dept., University of Central Florida Instance Name: Accept Default
IMS 4212 Lab: Lab Introduction 6 Dr. Lawrence West, MIS Dept., University of Central Florida Service Account: Use the built in system account and Local System
IMS 4212 Lab: Lab Introduction 7 Dr. Lawrence West, MIS Dept., University of Central Florida Authentication Mode: Leave default of Windows Authentication Mode
IMS 4212 Lab: Lab Introduction 8 Dr. Lawrence West, MIS Dept., University of Central Florida Collation Settings: Accept default
IMS 4212 Lab: Lab Introduction 9 Dr. Lawrence West, MIS Dept., University of Central Florida Error and Usage Settings: Click Next (nothing selected)
IMS 4212 Lab: Lab Introduction 10 Dr. Lawrence West, MIS Dept., University of Central Florida Proceed w/ install
IMS 4212 Lab: Lab Introduction 11 Dr. Lawrence West, MIS Dept., University of Central Florida …installing…
IMS 4212 Lab: Lab Introduction 12 Dr. Lawrence West, MIS Dept., University of Central Florida SQL Server 2005 Books Online Use this menu for quick access to the documentation
IMS 4212 Lab: Lab Introduction 13 Dr. Lawrence West, MIS Dept., University of Central Florida Books Online: Your Quick Reference
IMS 4212 Lab: Lab Introduction 14 Dr. Lawrence West, MIS Dept., University of Central Florida DB instances Within SQL Server Management Studio… Open “Object Explorer” pane Expand registered SQL Server Expand “Databases”
IMS 4212 Lab: Lab Introduction 15 Dr. Lawrence West, MIS Dept., University of Central Florida 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”
IMS 4212 Lab: Lab Introduction 16 Dr. Lawrence West, MIS Dept., University of Central Florida Where is your db? MDF LDF 2. Set paths here 1. Use the scroll
IMS 4212 Lab: Lab Introduction 17 Dr. Lawrence West, MIS Dept., University of Central Florida 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
IMS 4212 Lab: Lab Introduction 18 Dr. Lawrence West, MIS Dept., University of Central Florida 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
IMS 4212 Lab: Lab Introduction 19 Dr. Lawrence West, MIS Dept., University of Central Florida Role of the installed databases master model tempdb Northwind
IMS 4212 Lab: Lab Introduction 20 Dr. Lawrence West, MIS Dept., University of Central Florida 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
IMS 4212 Lab: Lab Introduction 21 Dr. Lawrence West, MIS Dept., University of Central Florida 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
IMS 4212 Lab: Lab Introduction 22 Dr. Lawrence West, MIS Dept., University of Central Florida tempdb Working area for database When you create temporary tables, the tables are created in this database Rebuilt every time the server is started
IMS 4212 Lab: Lab Introduction 23 Dr. Lawrence West, MIS Dept., University of Central Florida 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.
IMS 4212 Lab: Lab Introduction 24 Dr. Lawrence West, MIS Dept., University of Central Florida Next Topic 1.We’ll cover creating DB tables
IMS 4212 Lab: Lab Introduction 25 Dr. Lawrence West, MIS Dept., University of Central Florida To Do List 1.Install software (after Add/Drop) 2.Practice 3.Read Chapter 1 RDBMS Basics 4.Read Chapter 2 Tools of the Trade 5.Read Chapter 5 Creating and Altering Tables 6.Practice some more