Working with multiple TFS servers is prone to problems with cached credentials when switching accounts, especially on laptop systems that suspend/resume across domain authentication. Clear the TFS cache by deleting all files to remove cached credentials, and force re-authentication.
Month: February 2021
SqlServer: Detecting and acting based on the active database
Detecting and acting on the database name to change query behaviour for example for different company workflows within the same database. This is BRITTLE because database names can change outside your application. The safe way to handle this is by checking some flag to determine correct processing.