Increasing your Coding Speed in SQL Server Management Studio 17

Slides:



Advertisements
Similar presentations
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to get and stay organized?
Advertisements

 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
HORIZONT 1 TWS/WebAdmin Tips & Tricks HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
SQL Server Management Studio Introduction
INSIGHT V2 PC / LAN Introduction Version 1a © Data Dynamics.
Visual Studio Tips and Tricks. Credits Zain Naboulsi Microsoft Developer Evangelist isbn:
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
Keith Elder Microsoft MVP
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Performance Dash A free tool from Microsoft that provides some quick real time information about the status of your SQL Servers.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Basic Editing Lesson 2.
Copyright © 2006 Prentice-Hall. All rights reserved.1 Computer Literacy for IC 3 Unit 1: Computing Fundamentals Project 6: Using Windows.
Lesson 6: Working with Word Basics. 2 Learning Objectives After studying this lesson, you will be able to:  Use and customize the Ribbon  Use the Quick.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
Making the GUI work for you Tibor Karaszi
Chapter 8 Using Document Collaboration, Integration, and Charting Tools Microsoft Word 2013.
Introduction to Cataloguing on Aleph. Navigation Aleph is made up of panes When you first log in you will see this screen. In the navigation pane on the.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Data Visualization with Tableau
Editing Documents.
General System Navigation
SQL SERVER MANAGEMENT STUDIO
Increasing your Coding Speed in SQL Server Management Studio
Dive Into® Visual Basic 2010 Express
with a few tips and tools for managing mail
Microsoft Word Illustrated
Computer Literacy BASICS
Working with Data Blocks and Frames
Chapter 2: The Visual Studio .NET Development Environment
Creating Oracle Business Intelligence Interactive Dashboards
Working in the Forms Developer Environment
HORIZONT TWS/WebAdmin DS TWS/WebAdmin DS Tips & Tricks
Microsoft Outlook By: Phuong Nguyen.
Managing Worksheets And Workbooks
Increasing your Coding Speed in SQL Server Management Studio 2017
Metadata Editor Introduction
Making Developers lives easier with SQL Server 2016
Editing Documents.
Introduction to the Visual C# 2005 Express Edition IDE
Word and the Writing Process
GIS - NetmapWEB Training Slides
Boeing Supply Chain Platform (BSCP) Detailed Training
Lesson 7 Getting Started with Word Essentials
Visual Studio Advanced Features
ALEPH Version 22 Beginning Cataloging
Introducing Microsoft Office 2010
Siebel Open UI Features & Updates
Using JDeveloper.
Cross-Platform, Cloud and On-Premise Database Tool
Editing Documents.
Dreamweaver MX 2004 Fundamentals
Patrick Flynn | Link Group Australia
Cross-Platform, Cloud and On-Premise Database Tool
Word 2007 – Tips and Techniques
Objectives At the end of this session, students will be able to:
Guidelines for Microsoft® Office 2013
MECH 3550 : Simulation & Visualization
Approving Time in Kronos Manager/Supervisor Reference Guide
Using Microsoft Outlook: Outlook Support Number
Michelle Haarhues Keeping up with SSMS.
Chapter 8 Using Document Collaboration and Integration Tools
Turbo-Charging SSMS (for Beginners)
Logging In Using CAT for the Participant Version 1.6
Navigating SSMS Primer for Beginners
Presentation transcript:

Increasing your Coding Speed in SQL Server Management Studio 17 Samir behara dotnetvibes.com @samirbehara

About Me I am Samir Behara. Currently working as a Senior Developer in EBSCO Industries, Birmingham. More than 12 years of experience in IT industry, working on large-scale enterprise applications involving complex business functions, web integration, and data management in various domains like Insurance, Manufacturing and Publishing. Twitter –  @samirbehara LinkedIn -- https://www.linkedin.com/in/samir-behara-78953870 Website – www.dotnetvibes.com Steel City SQL User group - https://www.meetup.com/SteelCitySQL/

What we will try to cover in this session? SSMS Tips and Tricks Boost Productivity SSMS 2017 Enhancements Increase Coding Speed

SSMS 2017 Productivity Enhancements

SQL Server Management Studio 2017 SSMS 2017 is FREE. SSMS is an independent web installer. SSMS is decoupled from the underlying SQL Server Engine. SSMS now uses Visual Studio 2015 isolated shell. More frequent releases for new features, enhancement and bug fixes.

New Installation Experience

Number of rows affected SSMS 2016 and Older Versions SSMS 2017

Import Flat File Wizard Simplify the import experience of flat files to SQL Server Predictive File Splitting Predictive Date Type Assignment

Built in XEvent Profiler Directly integrated into SSMS Built on top of Extended Events technology

Built In Performance Dashboard Reports CPU bottlenecks IO bottlenecks Index recommendations (missing indexes) Blocking

Right Click and select ‘Find Node’ option Searching in Execution Plans Use CTRL + F Right Click and select ‘Find Node’ option

Have you come across this scenario? You execute a TSQL Query and it just runs and runs, without displaying any results and you finally end up cancelling the executing query. How do you troubleshoot this problem?

Collect actual metrics of the query while it is running…

Benefits of Live Query Statistics Troubleshoot Long running queries Real Time Insights into SQL Query Execution Process Visually track overall query progress

How to enable Live Query Statistics? Using SQL Server Management Studio Using Activity Monitor

Move quickly between various tabs Navigation Buttons Move quickly between various tabs ‘Navigate Backward’ button has a drop-down list box containing the list of all your navigation history.

Automatic Check for Updates Built in notification system to alert users about updates for new releases. SSMS is up to date

Option to manually check for updates

Vertical Scroll Bar Enhancements The enhanced scroll bar displays different colors on the vertical bar – Red – Syntax Errors Blue – Current Cursor Position Green – Saved Changes Yellow – Unsaved Changes

Quick Launch – The search tool Search features & options inside SSMS No need to remember any shortcuts

Improvements to Execution Plan window Allows you to zoom the contents of the execution plans. CTRL + Mouse Scroll to increase/decrease size of execution plan.

Compare Execution Plans ‘Compare Showplan’ feature allows side by side comparison of two execution plans.

Dual Properties Window Choose specific operator and compare – Actual Number of rows Estimated Operator Cost Number of rows read

Compare Global Properties Choose the SELECT operator and view – Compile Time Estimated Subtree Cost Missing Indexes

Color Theme Option to switch between 2 color themes – Blue and Light Dark theme and high DPI support to be enabled in future releases

SSMS Tips and Tricks

Type less and generate more code Code Snippets are ready-made snippets of code, which you can insert into your T-SQL code. Expansion Snippet Type - CTRL K + X Surround With Snippet Type - CTRL K + S

Reuse code by creating Custom Code Snippet Create your own Code Snippet using XML Register the Code Snippet in SSMS Invoke the Code Snippet

Get Row Count of tables without executing a T-SQL script Click F7 or go to View -> Object Explorer Details window

Save connection information of frequently accessed servers 1 2 3 Registered Servers

Execute a SQL Query against multiple servers at the same time 1 2 No need to connect to different database instances one by one and execute the same query multiple times.

Save time by leveraging pre-defined SQL scripts 2 1 Template Browser 3

Use Keyboard Shortcuts to increase efficiency Action CTRL+R Toggle between displaying and hiding Results Pane CTRL+N Open new query tab with current database connection CTRL+L Display estimated execution plan of the query SHIFT+ALT+ENTER Toggle between Code Editor being displayed in Full Screen CTRL + ] Navigate to the matching parenthesis CTRL+K+X Insert SQL Code Snippets CTRL+SHIFT+U Change text to upper case CTRL+SHIFT+L Change text to lower case CTRL+K+C Comment selected text CTRL+K+U Uncomment selected text CTRL+TAB to switch between tabs Using Keyboard shortcuts for repetitive day to day actions

Maximize your workspace with multiple code windows 1 Horizontal/Vertical Tab Groups 2

Use custom colors to differentiate between environments

Set different colors for connection to separate environments 1 2 Set different colors for connection to separate environments

Reuse your copied items by storing in memory Cycle Clipboard Ring - CTRL+SHIFT+V Allows you to keep track of last 20 items you have cut/copy and reuse them

Edit multiple lines of code at the same time Vertical Block Select Mode Keyboard Shortcut – ALT + SHIFT + Arrow Keys Mouse – ALT + Left-Click + Drag

Leverage built in Performance Reports in SSMS Standard Reports for Performance Monitoring & Troubleshooting

Generate SQL Insert scripts using SSMS 1 2 ‘Generate and Publish Scripts’ Wizard

Troubleshoot issues with Intellisense in SSMS Edit -> IntelliSense -> Refresh Local Cache

Recover your unsaved SQL queries in SSMS Configure the ‘Auto-Recovery’ option to be helpful during SSMS Crashes & Sudden machine reboots

If you don’t get File Recovery prompt, navigate to the backup file location. SSMS tries to recover unsaved queries, incase of unexpected SSMS shutdown.

More information… More in-depth details on my blog – https://dotnetvibes.com/ https://dotnetvibes.com/my-sqlshack-articles/ SQL Scripts used for the purpose of this presentation are upload in – https://gist.github.com/samirbehara

THANK YOU