As *database/sql.DB is a connection pool, maybe you have to go deeper, and implement a driver by wrapping a mtsql driver. This is not hard, as a driver.Driver is a narrow interface. This way you can do as you wish, and close old connections (you can account for them), or just do the password changing as needed, for the new connections. Or just return a specific error for old connections, to force database/sql to open a new connection.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.