Hacker News new | ask | show | jobs
by drittich 1270 days ago
We do this in SQL Server by running a SET CONTEXT_INFO command every time we open a connection. This makes the current user ID available to any SQL that runs.