I want to know how to change the tab name of a SQL query window:
Ins
In SSMS, go to Tools > Options > Text Editor > Editor Tab and Status Bar.
Tools
Options
Text Editor
Editor Tab and Status Bar
You can manage some options of tab text, as shown in the picture below. (for example don't include db name, file name, login name and/or server name).