The last user to login is stored in the dex.ini SQLLastUser option. Some people make the dex.ini read only, but that can cause problems and will not work anymore with v10.
Omni Tools from http://www.rocktonsoftware.com has the Omni Login module which can clear this setting.
If you are registered for Modifier and VBA, I have an example of using VBA with an unsupported technique of calling Dexterity sanScript from VBA to clear the setting.
If you are interested, I will post this on my blog http://blogs.msdn.com/DevelopingForDynamicsGP.
David Musgrave [MSFT]
Escalation Engineer - Microsoft Dynamics GP
Microsoft Dynamics Support - Asia Pacific
Microsoft Dynamics (formerly Microsoft Business Solutions)
http://www.microsoft.com/Dynamics
mailto:David.Musgrave@online.microsoft.com
http://blogs.msdn.com/DevelopingForDynamicsGP
Any views contained within are my personal views and not necessarily Microsoft policy.
This posting is provided "AS IS" with no warranties, and confers no rights.
The links in this message may lead to third-party Web sites. Microsoft provides third-party resources to help you find customer service and/or technical support resources. Information at these sites may change without notice. Microsoft is not responsible for the content at any third-party Web sites and does not guarantee the accuracy of third-party information.