SSMs to read T-SQL code using the Wrap function

Source: Internet
Author: User
Tags new features word wrap management studio sql server management sql server management studio

When you create a T-SQL script with lengthy T-SQL code, you can only choose one of two methods: either use a horizontal scroll bar or create a newline character on a different point, so that the line of code is easy to read without using the scroll bar. Using scrollbars or having to add line breaks takes time and does not focus on coding. It would be great if there was an automatic line wrapping or something like that. What are some of the ways in SQL Server Management Studio to deal with automatic wrapping?

As with many new features in SSMs, Microsoft has also solved the problem of automatic wrapping. You can easily enable this feature in the SSMs Query window as long as you follow the steps below to start it.

Select "Tools" from the SSMs menu, then select "Options"

Figure 1

In the Options window, select All Languages on the left. The right side of the setting is a word wrap option, which is unrestricted by default, as follows:

Figure 2

Select the check box "wrap line", which will make the wrap available in your query window. Another option under Wrap is the show visual glyphs for word wrap option, which can be applied if the visible options in each row are checked.

Figure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.