Replace CONTEXT_INFO() with SESSION_CONTEXT() Tip : Phase out CONTEXT_INFO() in SQL Server 2016 with SESSION_CONTEXT()