Skip to content

Customizing Tabs

Only in DbVisualizer Pro

This feature is only available in the DbVisualizer Pro edition.

You can change the labels of tabs, and give the tabs of a connection a color or border, so that you can tell tabs apart more easily.

Changing the tab label

Tab labels are made from a pattern. To change the pattern, open Tools → Tool Properties and select the General / Tabs category. For Object View, SQL Commander and Result Set tabs, you can also right-click the tab header and select Modify Tab Labelling.

Select one of the predefined patterns, or edit it using these variables:

VariableTabsDescription
${connectionname}AllThe connection name.
${index}AllA unique number for the tab in the tab group.
${userid}AllThe user name of the connection.
${filename}SQL CommanderThe script file name, or "Untitled" if no file is loaded. To show something else, use the nofile option, for example ${filename\|nofile=No File}. To show nothing, use ${filename\|nofile=}.
${longfilename}SQL CommanderThe full path of the script, or "Untitled" if no file is loaded. The nofile option works as for ${filename}.
${objectname}Object ViewThe object name.
${objecttype}Object ViewThe object type, such as Table or View.
${catalog}Object ViewThe database of the object, if any.
${schema}Object ViewThe schema of the object, if any.
${editorindex}Result SetThe number of the SQL Commander tab.
${rows}Result SetThe number of rows in the result set.
${sql}Result SetThe SQL statement that produced the result set.
${table}Result SetThe table the result set comes from, or the first one if there are several.
${time}Result SetThe time when the result set was produced.
${vendor}Result SetThe database vendor name.

To change the label of a single Object View, SQL Commander or Result Set tab, right-click its header and select Rename Tab.

Using tab colors and borders

To tell the tabs of a connection apart from others, give the connection a background color, a border, or both. Set them in the Properties tab of the connection, in the Color and Border category. If you set them in Tools → Tool Properties, in Database / <database type> / Color and Border, they apply to all connections of that database type.

For the border, select one of the predefined styles, or a small image file.

The color and border are also shown for the connection in the Databases tab, and in the connection list in SQL Commander.

Tabs with colors and borders