We do not want to view a mess of sql statement. such as

Formatting SQL by SQL Management Studio without add-on

There is no indent, mixing the lowercase and uppercase keywords. Is there any way to format this sql statement by SQL Management Studio?

 

Maybe add-on to the SQL Management Studio come up to you sight first, but there is easy way to format the sql without add-on.

First, select the sql statement that you need to formatting, then right-click and choose [Design Query in Editor]

Formatting SQL by SQL Management Studio without add-on

 

Query Designer pop up

Formatting SQL by SQL Management Studio without add-on

 

In bottom of Query Designer, the sql statement has been formatted. You can copy formatted sql to anywhere, further more,  editing sql statement in Query Designer directly.

 

Have fun ~

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2021-07-29
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2021-06-21
  • 2021-06-22
  • 2021-07-03
  • 2021-04-27
  • 2022-12-23
  • 2021-06-21
  • 2021-07-31
相关资源
相似解决方案