본문 바로가기
IT Develop/SQL

MSSQL 줄번호(Line Number) 적용하기

by K-popcorn 2023. 4. 27.
반응형

Microsoft SSMS(SQL Server Management Studio)를 자주 사용하여 SQL 쿼리를 작성하는 경우 쿼리 편집기 창에 기본적으로 줄 번호가 표시됩니다. 이렇게 하면 대규모 쿼리에서 사용자의 위치를 추적하는 데 도움이 될 수 있지만, 일부 사용자는 회선 번호를 끄거나 표시 설정을 조정하는 것을 선호할 수 있습니다. 이 블로그 게시물에서는 SSMS에서 쿼리 편집 창 행 번호를 제어하는 방법에 대해 알아보겠습니다.

줄번호(Line Number) 켜기 또는 끄기
줄번호(Line Number)를 켜거나 끄려면 다음 단계를 수행하십시오:

SSMS를 열고 서버에 연결합니다.

"도구" 메뉴를 클릭하고 "옵션"을 선택합니다."

"텍스트 편집기" 섹션을 펼치고 "모든 언어"(또는 작업 중인 특정 언어)를 선택합니다.

회선 번호를 설정하거나 해제하려면 "줄 번호" 상자를 선택하거나 선택 취소합니다.

변경사항을 저장하려면 "확인"을 클릭합니다.

줄 번호의 표시 형식 변경
줄 번호를 선행 0 또는 다른 색과 같은 다른 형식으로 표시하려면 다음 단계를 사용하여 표시 설정을 조정할 수 있습니다:

위의 1-3단계에 따라 "옵션" 창을 엽니다.

"옵션" 창에서 "줄 번호" 섹션 아래의 "표시"를 선택합니다.

숫자 형식 변경, 선행 0 추가 또는 색상 변경 등 원하는 대로 설정을 조정합니다.

변경사항을 저장하려면 "확인"을 클릭합니다.

 

 


키보드 단축키 사용
줄 번호를 자주 켜거나 끌 경우 바로 가기 키를 사용하는 것이 더 효율적일 수 있습니다. 바로 가기 키를 사용하여 줄 번호를 켜거나 끄려면 키보드에서 "Alt+L"을 누르기만 하면 됩니다.

결론적으로, SSMS는 쿼리 편집기 창에서 라인 번호의 표시를 제어하기 위한 몇 가지 옵션을 제공합니다. 회선 번호를 켜거나 끄거나, 디스플레이 형식을 조정하거나, 키보드 단축키를 사용하거나, 이러한 팁은 사용자의 기본 설정에 맞게 SSMS를 사용자 지정하고 작업 효율을 높이는 데 도움이 됩니다

 

(Eng.Ver)

If you frequently use Microsoft SQL Server Management Studio (SSMS) to create SQL queries, the Query Editor window displays the line number by default. This may help you track your location in large queries, but some users may prefer to turn off line numbers or adjust display settings. In this blog post, you will learn how to control the query edit window row number in SSMS.

Turn the line number on or off
To turn the line number on or off, perform the following steps:

Open SSMS and connect to the server.

Click the Tools menu and select Options."

Expand the "Text Editor" section and select "All languages" (or the specific language you are working on).

To turn the line number on or off, check or deselect the "Line Number" box.

Click OK to save your changes.

Change the display format of a line number
To display line numbers in a different format, such as leading zeros or other colors, you can use the following steps to adjust the display settings:

Follow steps 1-3 above to open the "Options" window.

In the Options pane, select "Display" under the "Line Number" section.

Adjust the settings as desired, such as changing the format of numbers, adding leading zeros, or changing colors.

Click OK to save your changes.

Use keyboard shortcuts
If you frequently turn the line number on or off, it may be more efficient to use a shortcut key. Simply press "Alt+L" on the keyboard to turn the line number on or off using the keyboard.

In conclusion, SSMS provides several options for controlling the display of line numbers in the Query Editor window. Turn the line number on or off, adjust the display format, use keyboard shortcuts, or these tips can help you customize SSMS to suit your preferences and increase work efficiency

반응형

댓글