It is rare that this will come up, but in certain circumstances you may need to change (or guarantee) the database in which a query executes.
This can really plague you when you’re working with multiple databases on multiple servers. You don’t want to forget which database you’re in… and execute code in the wrong place.
Comments