web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Get user name in sql code

(0) ShareShare
ReportReport
Posted on by

Hi,

Is there a way to get the logged on username when executing a stored procedure on the server? (without passing it in as a parameter.)

Thanks.

*This post is locked for comments

I have the same question (0)
  • Butch Adams Profile Picture
    4,763 on at

    The Access table in the SL system database has the logged in users and the screens they have open. Depending on what you are doing, you might be able to use this info to help your script.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans