Navigating SSMS Primer for Beginners

Slides:



Advertisements
Similar presentations
© 2011 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Advertisements

Chapter 4 Joining Multiple Tables
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Microsoft SQL Server 2008 From the Program menu choose: Microsoft SQL Server 2008 R2  SQL Server Management Studio. You may see a window indicating the.
ERWin Template Overview By: Dave Wentzel. Agenda u Overview of Templates/Macros u Template editor u Available templates u Independent column browser u.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
04 | Building Stellar Data Visualizations Using Power View.
SiS Technical Training Development Track Technical Training(s) Day 1 – Day 2.
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
SQL Server Management Studio Introduction
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Database Design for DNN Developers Sebastian Leupold.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
DATA MODELING AND DATABASE DESIGN
Creating Databases with MySQL Workbench Build the Forums database in Ullman’s Chapter 6.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Website Development with Dreamweaver
Copyright  Oracle Corporation, All rights reserved. 4 CMIS Powell Oracle Designer: Creating the Database Design CMIS Powell.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
IE 423 – Design of Decision Support Systems Database development – Relationships and Queries.
Using SAS® Information Map Studio
Introduction to the Visual Studio.NET IDE (LAB 1 )
ISM 4212 Lab Creating DB Tables 02 copyright Lars Paul Linden 2007.
1 Intro to JOINs SQL INNER JOIN SQL OUTER JOIN SQL FULL JOIN SQL CROSS JOIN Intro to VIEWs Simple VIEWs Considerations about VIEWs VIEWs as filters ALTER.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Data Management Console Synonym Editor
Oracle Data Integrator Transformations: Adding More Complexity
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
M1G Introduction to Database Development 5. Doing more with queries.
Module 4 Designing and Implementing Views. Module Overview Introduction to Views Creating and Managing Views Performance Considerations for Views.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
SQL/Lesson 7/Slide 1 of 32 Implementing Indexes Objectives In this lesson, you will learn to: * Create a clustered index * Create a nonclustered index.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Instructor: Craig Duckett Lecture 12: Tuesday, May 19, 2015 Intro to SQL Server, SSMS 1.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
Manipulating Data Lesson 3. Objectives Queries The SELECT query to retrieve or extract data from one table, how to retrieve or extract data by using.
Retele de senzori Curs 2 - 1st edition UNIVERSITATEA „ TRANSILVANIA ” DIN BRAŞOV FACULTATEA DE INGINERIE ELECTRICĂ ŞI ŞTIINŢA CALCULATOARELOR.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Top 10 Entity Framework Features Every Developer Should Know
Increasing your Coding Speed in SQL Server Management Studio
Visual Basic 2010 How to Program
Developer 2000 CSE 4504/6504 Lab.
Data Virtualization Demoette… Parameterized Queries
Searching Business Data with MOSS 2007 Enterprise Search
Introduction to the Visual C# 2005 Express Edition IDE
Getting Started with Dreamweaver
Searching Business Data with MOSS 2007 Enterprise Search
ISC440: Web Programming 2 Server-side Scripting PHP 3
Chapter 2 – Introduction to the Visual Studio .NET IDE
Relational Queries (query 12) Display vendor contact info (contact person and phone number) for inventory products (relationship query) Query: Inventory.
Contents Preface I Introduction Lesson Objectives I-2
Relational Database Design
Dynamic Sql Not so scary?
Chapter 11 Managing Databases with SQL Server 2000
September 12-14, 2018 Raleigh, NC.
SQL Server Fundamentals for Beginners
Manipulating Data Lesson 3.
Michelle Haarhues Keeping up with SSMS.
CS4540 Special Topics in Web Development SQL and MS SQL
Presentation transcript:

Navigating SSMS Primer for Beginners Harvey Hyman “the database whisperer” Contact: hhyman@usf.edu

Hyman Bio Senior Chief USCG, OIF, Katrina, Harvey PhD, 2012 Georgia Southern, 2013 – 2014 Florida Polytechnic, 2014 – 2015 New College of Florida, 2015 – 2016 Library of Congress, 2016 Moffitt Cancer Center, 2017 Muma College of Business at University of South Florida, since 2018.

Contact and Materials https://github.com/hymanphd-database-whisperer https://join.slack.com/t/database- whisperer/shared_invite/enQtNzczMjk1MDU0OTY3LWIyOTU1Yzk2NjM1N2YwNzdmNT c5NTNkODExOTZjMTFmNTc1ZGYxZDE0NzA4YTQ4Y2FlYjZiZDU3ZTlkMTFmZTI

Topics Covered Getting Started with SSMS (downloading, installing) Developer versus Express Creating an Azure SQL Server Instance Registered Servers Basic and Interesting Features of 17.9 Navigating the Object Explorer Panel Using the Database Diagram feature Building Tables and Columns Checks, Rules, Defaults Creating Views Simple Query Operators and SPROCs with @Parameters Joins: inner, right, left, cross, full

Sources for Helpful Hints and Tricks SSMS Tips and Tricks Productivity Driven Development: https://www.ssmstipsandtricks.com Pod Casts: Brent Ozar “SQL Server 101” Hit or Miss

SSMS Tips Here is a link to some productivity Tips and short cuts to navigate SSMS: https://www.sqlshack.com/10-ssms-tips-and-tricks-to-boost-your- productivity/ Setting color bar for your different servers Clipboard ring Vertical Block Select Web Browser https://logicalread.com/sql-server-management-studio-10-tips-and- tricks-mo01/ Other interesting features and customization options

SSMS Tips (Split windows)

Vertical Split Windows Horizontal Split Windows

If you are starting completely from scratch SQL Server Engine Express versus Developer SSMS versus SQLCMD Where to find it Downloading Installing Don’t forget SSMS download also

Tour of Basic Features 17.9.1 17.9 versus 18 (dropped support for Database Diagram) Navigating the Object Explorer Panel: Folders Databases (where you will spend most of your time) Security (roles, setting logins) Server Objects (server level triggers) – Programmability folder Using Database Diagram functionality mapping an existing database, create new database drag and drop, modify an existing database drag and drop Using Table Designer, column properties window “Right clicking your way to happiness” Table level design versus modify column

Creating a database from scratch Entities and their relations (ERDs) Attributes (columns, fields) Hopefully you have a RS and a well documented DD PK (selecting data type, identity, seed, increment) Selecting your FK – PK relationships Checks, Rules, Defaults (constraints)

Let’s build some tables Things to know before you start: Create, attach, detach database DATA folder Tools  Options Designer (uncheck ‘the box’)

Creating Tables Items to consider: Setting PK, Identity, Seed, Increment Column Data Types, Size Or do you want to create your own user defined data type

Setting Relations Between Tables Adding Column FK in the foreign table. Linking FK in foreign table to PK in primary table.

Indexes: Cluster or Non-cluster Default is PK is indexed as clustered Only one clustered index per table. I recommend setting PK as non-cluster. Index conventions: AK, UN, IX

Views What are views? How we can use them to: Test View: Hide columns Hide rows “Pre-join” columns from multiple tables Can bind to schema for dynamic updates Test View: Select top 10 * table Select * table_vw Use Vertical Window

SQL Codes create view MaryBrown_vw as select * from Employee where empno = '1012' CREATE VIEW Employee_vw AS SELECT EmpNo, FirstName, LastName, JobTitle, HireDate, MgrNo, DeptNo FROM Employee

Constraints Checks Rules Defaults Triggers

Queries Select From Where Order by Wild cards: %, * Comparisons: Like, =

SPROCs – Stored Procedure A query wrapped as an executable Practical Uses: Reusable query Embedded in the database Avoid the need to open .sql file More Advanced: @parameter (Increase flexibility of your SPROC) Your DBA will thank you.

Join Types Inner Left / Right “outer” Full Cross Operation: exclusive, most common Purpose: Include only matching rows from tables on both sides of join command. Left / Right “outer” Operation: inclusive matching Purpose: Include all from inclusive side (left or right), and only the matching rows from other side. Full Operation: shows all rows from both tables. Good way to find missing matches. Purpose: Include matching rows, and rows that don’t have a match from left and rows that don’t have a match from right. Cross Cartesian: Good way to get a distribution across matches. Left Right

Harvey Hyman “the database whisperer” Any questions?