473,382 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to get the full name

102 64KB
Background:

Back end - MS SQL 2008
Front End - MS VS/VB 2017

I want to get the user authenticated full name (ex:John Doe) a so it can be displayed on the screen and use it in processing. I would think you could get it from active directory. I have found a couple of routines but they do no work. Does anyone know how to get the full name? Thanks.
Apr 6 '17 #1
2 1562
Frinavale
9,735 Expert Mod 8TB
You can use the WindowsIdentity.GetCurrent Method to get the current Windows User and then access the current Window User's name using the WindowsIdentity.Name property.

Not sure how this relates to your MS SQL Server unless you have a user set up with it, that is using the same windows account as the user using the computer...
Apr 10 '17 #2
sc5502
102 64KB
Thank you. I'll give it a try.
Apr 11 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: RCIC | last post by:
Trying to get a user's full name using ADSI. It works in our Win2000 Active Directory but fails when I try to get a user's full name from a trusted WinNT domain. The error is "Cannot create ActiveX...
4
by: Mike | last post by:
Greetings, I am writing an Intranet application in ASP.NET using VB.NET. I am obtaining the username of the user with: uName = User.Identity.Name, which is in the form of DOMAIN\username. I...
6
by: Jo K. | last post by:
I have a bounded field called Name. It's used to type in the full name of a customer (intentionally set up that way instead of seperating the first and last names) I would like to be able to...
2
by: Jesper | last post by:
Hi, I don't know if its possible, but I would like to get the full name of the user. Using string name = System.Environment.UserName; only gives me the login name of the user - however, when...
6
by: wantagofast | last post by:
Hello all! I have been searching for what seems like days now on how to have my users full name (ie. John Smith) to appear on my intranet but can't seem to be able to find the correct asp code. I...
4
by: Brian Henry | last post by:
I am creating a plugin system and each plug-in has a class called "Connect", which is what I created as the entry point for the plug-in. The problem is, I need to get the Full type name of this to...
4
by: Mindy | last post by:
hey, guys, I have a simple question --- simple only for you. I created a combo box called "pick up a name". And the underlying table has lastname and firstname columns. The full name can be...
2
by: Bill nguyen | last post by:
I learned that I can use system.environment.username to get user login name. How can I get user full name/description from Active Directory or GAL? Thanks a million. Bill
5
by: CindySue | last post by:
I'm not a programmer. I have a table called nicknames with two fields--a nickname field and a full name field. I also have a Licensed Provider table with a full name field and some other info. I have...
1
by: hbkiwi | last post by:
Hi, Just playing with Access fairly new to it (like days old). Also it's my first post here so if I'm in the wrong place, sorry.. What I'm wanting to know is basically I have lets call it Table...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.