Presentation is loading. Please wait.

Presentation is loading. Please wait.

Patrick Flynn | Link Group Australia

Similar presentations


Presentation on theme: "Patrick Flynn | Link Group Australia"— Presentation transcript:

1 Patrick Flynn | Link Group Australia
Optimizing your management of SQL Server with SSMS and SQL Operations Studio The 2018 Edition

2 Who Am I Patrick Flynn MCM – SQL Server 2008 MCSM – Data Platform
Happy to answers any queries on this or any other SQL Server issues MCM – SQL Server 2008 MCSM – Data Platform Production DBA for 10+ years.

3 SSMS 17.4 SQL Operations Studio Third Party Add-Ins

4 SQL Server Management Studio V17.x
Latest generation of SQL Server Management Studio Runs only on Windows Separate Download from SQL Server Free Can be installed with SSMS versions 16.x or earlier First Public Preview – November 2017 Current Version

5 SSMS setup options Tools => Options
Control Environment Options Startup Query Options etc Works great for attribution of code that you grabbed from the interwebz Also great for pointing at a wiki or internal documentation

6 Templates + CTRL + SHIFT + M
Demo Templates + CTRL + SHIFT + M Template Replacement Using templates for saved/reusable scripts <label, datatype, default value>

7 SSMS Query Shortcuts 3 Built-in, non-customizable
9 customizable shortcuts Get to frequent queries quickly Highlight text, then use shortcut key combination SELECT TOP 10 * FROM Highlight table name, hit Ctrl+3

8 SSMS External Tools Shortcuts
Setup Shortcuts to run External Programs Launch frequently used programs. Eg Excel PowerShell

9 SSMS has a web browser built-in
CTRL + ALT + R URLs in your comments are clickable Works great for attribution of code that you grabbed from the interwebz Also great for pointing at a wiki or internal documentation

10 Management Studio Tabs
Drag-drop a tab in SSMS to re-order Drag a tab out of SSMS to float/undock Pin a tab to your SSMS Query window Also WindowFloat from the menu One difference between Chrome & SSMS is that dragging a tab OUT will create another full window of Chrome, complete with menu bars, etc. In SSMS, your tab literally floats outside the existing SSMS. Both your “main” SSMS and your floating tab are in focus at the same time

11 Results as separate tab
Results as separate tab, instead of results pane F6 to switch between tabs Ctrl+R to hide the results pane won’t work, because there’s no results pane Good for when screen real estate matters Laptop screen Projector Long queries You’ll see most presenters using this, but I love it anytime I’m working on my teeny tiny 13” laptop screen. NOTE: This won’t affect tabs already open. You’ll need to open a new tab.

12 Include query in result set
Makes a quick report that also includes a record of what query you used to generate the results Auditors love this “Proves” what query generated the results One-time ad-hoc queries for end users Never lose the script you used to generate the output One-time queries are rarely one-time—they’ll want it again next month or next year Setting is available for both “Results to Grid” and “Results to Text” … With “Results to Text” it will appear on your Results tab. With “Results to Grid” it will appear on the Messages tab.

13 Editing Options Bookmarks Find and Replace Column and Block Editing
Regular Expressions Code Snippets First Public Preview – November 2017 Current Version

14 Additional Tools and Explorers
Object Explorer Details Solution Explorer Activity Monitor Registered Servers XEvent Profiler Vulnerability Assessment Reports First Public Preview – November 2017 Current Version

15 SSMS Keyboard shortcuts
(the ones you probably already know) Ctrl + Tab / Ctrl + Shift + Tab – Switch tabs Ctrl + R – Show/hide Results pane Ctrl + L – Get estimated execution plan Ctrl + M – Include actual execution plan Ctrl + (K,C) – Comment selected text Ctrl + (K,U) – Uncomment selected text Shift + Alt + Enter – Toggle full screen Ctrl + U – Move cursor to database-selection dropdown

16

17

18 Management Studio Demos

19 SSMS 17.4 SQL Operations Studio Third Party Add-Ins

20 SQL Operations Studio Open sourced and is in GitHub
Free Lightweight cross platform tool Runs on Windows, Linux and macOS Open sourced and is in GitHub Still in Preview! First Public Preview – November 2017 Current Version

21 Features Customizable Database Dashboard
First Public Preview – November 2017 Current Version

22 Features ‘Search Widget’ inside your Database Dashboard
First Public Preview – November 2017 Current Version

23 Features Use Code Snippets by Typing ‘sql’ in Editor
First Public Preview – November 2017 Current Version

24 Features Peek Definition Feature
–  familiar to folks working in Visual Studio IDE First Public Preview – November 2017 Current Version

25 Features Exporting query results to CSV, Excel and JSON
First Public Preview – November 2017 Current Version

26 Features Github Source Control Integration with Ops Studio
First Public Preview – November 2017 Current Version

27 Features Color Themes and Customization
First Public Preview – November 2017 Current Version

28 SQL Operations Studio Demos

29 SSMS 17.4 SQL Operations Studio Third Party Add-Ins

30

31

32

33 Questions? ? ? ? ? ? ? ? @sqllensman ? Patrick Flynn ? ? ? ? ? ? ? ?

34 Social Make sure you tweet on #sqlsat702 or #sqlsatmalaysia Don’t forget to thank Sponsors, Volunteers and Speakers!

35 Resources Wayne Sheffield – A month of SSMS Andy M Mallon – AM2
Andy M Mallon – AM2 Drew Furgiuele

36 Resources Microsoft SQL Server Tools Regular Expressions
Regular Expressions


Download ppt "Patrick Flynn | Link Group Australia"

Similar presentations


Ads by Google