Mar 20, 2002 #1 kim1 Programmer Nov 7, 2001 77 CA Hi, Is it possible to retrieve my NT Username of my Window NT when I connect with a SQL Login in SQL Server? Thanks for your help. Kim Kim
Hi, Is it possible to retrieve my NT Username of my Window NT when I connect with a SQL Login in SQL Server? Thanks for your help. Kim Kim
Mar 20, 2002 #2 AshleyRickards MIS Jun 29, 2001 195 US I believe it's SUSER_SNAME(). Ashley L Rickards SQL DBA Upvote 0 Downvote
Mar 20, 2002 Thread starter #3 kim1 Programmer Nov 7, 2001 77 CA No, SUSER_SNAME() gives the database username. Thanks anyway. Kim Kim Upvote 0 Downvote
Mar 20, 2002 #4 AshleyRickards MIS Jun 29, 2001 195 US Remove the 's' user_name(). I know it's one of those. Ashley L Rickards SQL DBA Upvote 0 Downvote
Mar 20, 2002 Thread starter #5 kim1 Programmer Nov 7, 2001 77 CA Neither, I tried it, it is always the database login name or user name, not NT user logged into Window NT. Thanks. Kim Kim Upvote 0 Downvote
Neither, I tried it, it is always the database login name or user name, not NT user logged into Window NT. Thanks. Kim Kim