Let us quickly address a message pattern that is familiar to those who use sqlcmd.
The message reads “Changed database context to ….”
It is sourced to the presence of “use [database]” within a SQL command or file.
We have a bit of control over whether SQL Server emits the message by adding the “-m” argument.
Started out like over 25 years ago with C, C++ and then some Java, as well as all sorts of scripting languages on UNIX systems. A whole boat load of CORBA and other stuff around distributed computing. Since the last decade, doing .NET-based development on Windows. Mostly managed, but sometimes native stuff as well.