When utilizing the database function `dbo.tsf_user()` in a stored procedure, the value does not resolve the user requesting/executing the stored procedure, while using Indicium to do the request.
To sketch 2 similar, but different situations.
- A process flow is executed through the Windows GUI.
- Stored procedure is executed while generating a report in DevExpress.
- Stored procedure utilizes `dbo.tsf_user()`, which results in the currently logged in user, the one executing the query.
- A process flow is executed through the Universal GUI.
- Stored procedure is executed while generating a report in DevExpress.
- Stored procedure utilizes `dbo.tsf_user()`, which does not result in the currently logged in user, the one executing the query.
For other features in SQL, this error does not occur, for example for building certain views, functions, etc…
However, for the stored procedure that is being used in the DevExpress report the currently logged in user is not being retrieved. Causing our reports to not report the correct information.