Windows or Database Login with SQL

Using code, how can I tell if a user has logged into Navision SQL Option using a Windows login or a Database login (assuming that the user has access through both)? Regards, Floyd Chan FutureLink Canada Corp.

try using the session virtual table. in it, the user id is written as <user id> if the user is connected with windows authentication. you should be able to analyse this string, and conclude what kind of authentication is used. this might not be the most ellegant solution, but it should work.