Choosing the Right Execution Context in DataGrip for Reliable SQL Operations
DataGrip respects its configured database connection settings, making context-aware SQL queries reliable. Use a simple SELECT count(*) to validate the active execution context against your target database.