Dynamics User Group
Since 1995 - The Microsoft Dynamics Online User Community

Windows Login from SID

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Posts 1
Points 20
Member since 04-09-2008
najja Posted: 04-09-2008 14:58

Hello There,

 When I opened the NAV (5.0) database from SQL Management Console (for Reporting from outside NAV) it is noticed that the Table 200..54 - Windows Login as well as Table 200..53 - Windows Access Control has only the SID column where if we read the table from object designer we can see User ID and Name columns. Does anybody has any idea how or if they are hiding it and if I need the User ID to be listed using an SQL Query how should I do that.

 Regards

Najja

  • | Post Points: 20
Top 75 Contributor
Posts 290
Points 7,097
Member since 07-14-2006

Tables 2000000053 and 2000000054 contain references to the virtual table "SID - Account ID".  The contents of this table are calculated on the fly in memory.

If you want to find the value in a SQL query, you should call the function select suser_sname( SID ) in SQL server.  Note that the SID in the parameter is a binary representation of the SID, and in NAV you are getting a string representation of the SID. 

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS


Copyright Dynamics User Group, 1995-2009, all rights reserved. The Dynamics User Group is not affiliated with Microsoft Corporation.