getting started with microsoft sql server 2012 express edition appendix a david m. kroenke and david...

16
Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Upload: shana-pierce

Post on 15-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Getting Started withMicrosoft SQL Server 2012 Express Edition

Appendix A

DAVID M. KROENKE and DAVID J. AUER

DATABASE CONCEPTS, 6th Edition

Page 2: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means,

electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States

of America.

Copyright © 2013 Pearson Education, Inc.  Publishing as Prentice Hall

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-2

Page 3: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Appendix Objectives

• Learn how to create a database in SQL Server 2012.

• Learn how to submit SQL commands to create table structures.

• Learn how to submit SQL commands to insert database data.

• Learn how to submit SQL commands to query a database.

• Learn how to install the Microsoft SQL Server 2012 ODBC Client.

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-3

Page 4: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The Connect to Server Dialog BoxSQL Server 2012

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-4

Figure A-1: The Connect to Server Dialog Box

Page 5: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Microsoft SQL Server Management StudioSQL Server 2012

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-5

Figure A-2:The Microsoft SQL Server Management Studio in Windows 7

Page 6: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The New Database Command

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-6

Figure A-3: The New Database Command

Page 7: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Naming the New Database

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-7

Figure A-4: Naming the New Database

Page 8: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The New Database in Object Explorer

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-8

Figure A-5: The New Database in the Object Explorer

Page 9: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The Microsoft SQL Server Management Studio Folder

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-9

Figure A-6:The Microsoft SQL Server Management Studio Folder in Windows Explorer

Page 10: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

WPC SQL Statements(Partial)

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-10

Figure A-7:The Figure 3-7 SQL Statements to Create the WPC Database Tables

Page 11: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The SQLQuery1.sqlTabbed Document Window

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-11

Figure A-8: The SQLQuery1.sql Tabbed Document Window

Page 12: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The SQL Script toCreate the WPC Database Tables

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-12

Figure A-9: The SQL Script to Create the WPC Database Tables

Page 13: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

The SQL Script Results —The WPC Tables

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-13

Figure A-10: The SQL Script Results—The WPC Tables

Page 14: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Creating and Running anSQL Query

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-14

Figure A-11: The SQL Query Results

Page 15: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Installing the SQL Server 2012 ODBC Client

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A-15

The ODBC client is automatically installed as part of the SQL Server 2012 installation, and is available as the SQL Server Native Client 11.0 in the ODBC Data Source Administrator.

Page 16: Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Getting Started withMicrosoft SQL Server 2012 Express Edition

End of Presentation on Appendix A

DAVID M. KROENKE and DAVID J. AUER

DATABASE CONCEPTS, 5th Edition