Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Blogs / Dynamics GP Land / 6 Tips to Help You Get More...

6 Tips to Help You Get More Out of SQL Server Management Studio

Community Member Profile Picture Community Member Microsoft Employee
By Steve Endow

If you use SQL Server Management Studio, I've assembled a few helpful tips that can help you save time and work more efficiently.

Here's a video where I discuss and demonstrate the tips.





1. By far the most valuable time saving tip is to use the Object Explorer Details window in SSMS.  I have had hundreds of GoToMeeting sessions with customers and consultants who only used the Object Explorer pane and weren't familiar with the benefits of the Object Explorer Details window.  If you are using the Object Explorer pane to locate tables or stored procedures, press F7 to open the Details window and save yourself a ton of time.  Check out the video to see how to quickly navigate and search using Object Explorer Details.


2.  When you are testing or debugging complex queries, error messages will be displayed below the query, showing an error message and noting the line number of the error.  If you double click on the error message, SSMS will take you to the line in the query where the error occurred.



3.  A related feature is the option to display line numbers next to the query window, allowing you to easily reference the line numbers in the query.




4.  If you've ever had to copy the results of a query and paste it into Excel, you should definitely use the Copy with Headers feature.  This allows you to easily paste the data with headers into an Excel file.  Just right click on the blank square above row 1 in the query results grid and select Copy with Headers--or press CTRL+SHIFT+C.



5.  Next is a feature that you may not need to use regularly, but may come in handy for situations where you'd like to save the query results directly to a text file rather than paste them into Excel.  Under Options -> Query Results -> SQLServer -> Results to Text, check out the Output format options.  SSMS can format the text query results to be comma or tab delimited.  But a word of caution: the Comma delimited format does not produce a CSV compliant file--it will not put apostrophes around text field values that contain a comma.  So be aware of your data before using that option.



6.  The last tip involves how to fix the scaling of SQL Server Management Studio on a high DPI display, such as a 4K monitor, or a high resolution notebook, like the Surface Pro 4.  In the video, I show you how to install the fixes outlined in this post on SQL Server Central.

Before the fix, notice that the icons on the left are tiny and the text looks crammed into the window.


After the fix, the scaling is completely different, with properly sized icons and readable text.



I hope you learned at least one new trick to help you work more efficiently with SQL Server Management Studio.



You can also find him on Twitter, YouTube, and Google+




This was originally posted here.

Comments

*This post is locked for comments