Presentation is loading. Please wait.

Presentation is loading. Please wait.

Increasing your Coding Speed in SQL Server Management Studio 2017

Similar presentations


Presentation on theme: "Increasing your Coding Speed in SQL Server Management Studio 2017"— Presentation transcript:

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

2 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 Website – Steel City SQL User group -

3

4 Platinum Sponsors

5 Gold Sponsors

6 Silver Sponsors

7 After Party – Dave & Busters
2215 D&B Drive Southeast Marietta, GA Sponsored By:

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

9 SSMS 2017 Productivity Enhancements

10 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.

11 New Installation Experience

12

13

14 Number of rows affected
SSMS 2016 and Older Versions SSMS 2017

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

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

17 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?

18 Collect actual metrics of the query while it is running…

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

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

21 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.

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

23 Option to manually check for updates

24 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

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

26 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.

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

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

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

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

31

32 SSMS Tips and Tricks

33 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

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

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

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

37 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.

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

39 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

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

41 Use custom colors to differentiate between environments

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

43 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

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

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

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

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

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

49 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.

50

51 More information… More in-depth details on my blog –
SQL Scripts used for the purpose of this presentation are upload in –

52 THANK YOU


Download ppt "Increasing your Coding Speed in SQL Server Management Studio 2017"

Similar presentations


Ads by Google