Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Chapter 2: MS SQL SERVER 2008 Management Studio MS SQL SERVER 2008 Management Studio 2. MS SQL SERVER 2008 – Management Studio (SMS) Running MS SQL 2008 – Management Studio (MS) The screens are based on those for home setup. UoT Lab – Full Admin rights – create databases. Local computer the server name is the SCM-DB-xxxx where xxxx is the computer box number. UoT SQL Server – Partial Admin Rights – create tables. The school server is scm-database using the sql server password available from IT Help Desk 1/30. a) Execute SQL – Management Studio. b) Connecting. click connect Please note UoT labs require a SQL Authentication user name and password provided in the lab. Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 1 Chapter 2: MS SQL SERVER 2008 Management Studio c) SQL developers environment Click Databases Note additional server option d) SQL Server database samples. Note SUMMARY tag. Available from VIEW menu. Expand databases by clicking + Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 2 Chapter 2: MS SQL SERVER 2008 Management Studio e) Accessing databases - AdventureWorks. Double Click AdventureWorks database Under object explorer and Summary Tag. f) Accessing Database. Double Click – Tables in the summary section Note AdventureWorks database subfolders … Diagram, Tables & Views Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 3 Chapter 2: MS SQL SERVER 2008 Management Studio g) Accessing Tables Note User Tables h) Accessing Tables Right click table Employee and note options available Select Open Table Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 4 Chapter 2: i) MS SQL SERVER 2008 Management Studio Return all rows for Employee Note the tags for Table – Employer and Summary Close the Table by clicking the X on the right hand side and return to the summary tag j) Create a Diagram (Entity Relationship Diagram) Double Click Database Diagram. Note there are no diagrams k) Create a Diagram (Entity Relationship Diagram) Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 5 Chapter 2: MS SQL SERVER 2008 Management Studio Right Click to create a new Database Diagram. l) Add tables to the Diagram Select tables relating to Human Resources Employee JobCandidate Mansha Nawaz EmployeeDepartment EmployeeAddress Department EmployeePastHistory MS SQL SERVER 2008 – Management Studio Chapter 2: 6 Chapter 2: MS SQL SERVER 2008 Management Studio MS SQL SERVER 2008 – Management Studio Chapter 2: m) ERD for Employee n) Save Diagram Mansha Nawaz 7 Chapter 2: MS SQL SERVER 2008 Management Studio o) Close the diagram dialogue box and note the Employee ERD Mansha Nawaz MS SQL SERVER 2008 – Management Studio Chapter 2: 8