Query Source Code

The query source code feature enables an implementer or administrator to edit existing queries or create new ones. This is possible by directly entering Microsoft T-SQL code. The entire language range can be used with a few exceptions, e.g. parallel threads are not possible. A variable built into Interface Scan is @Period. It contains the value of the currently selected period.

Outputting Messages

If queries are executed, a result list is created. Using a PRINT statement, messages can also be created for the respective queries, which are output in the additional tab Messages:

Limitations:

  • If multiple PRINT statements are used, only the last message is output.
  • If a PRINT statement is used in a query that does not produce a result list, the information Error:<Print-Output> is output instead of the result list. However, the message is output correctly in the Messages tab.

Context Menu of the Query Source Code

EntryDescription
Select allSelects the entire text of the editor
CutCuts the selected text and copies it to the clipboard
CopyCopies the selected text to the clipboard
PastePastes the text of the clipboard where the cursor is positioned
UndoUndoes the last step
RedoUndoes the last Undo step
FindOpens the search field
ReplaceOpens the search and replace field
Change FontOpens the settings window to edit the font of the editor
Show line numbersShows the line numbers in the editor