When we are looking a stored procedures, views, functions etc. which have a lot of code in them it can be handy to turn on Map Mode in the scroll bar so we can get an idea of where we are in the overall file.
Turning on map mode will cause SQL Server Management Studio (SSMS) to display a preview of the code in miniature in the vertical scroll bar like below…

It’s easy to turn on map mode for the SSMS vertical scrollbar from the options highlighted below…
