Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want all login details per databses
Posted
Comments
choudhary.sumit 11-Dec-12 6:06am    
bhai samjh me nahi aayi baat, khul k bata thoda!
AnkitGoel.com 11-Dec-12 6:13am    
gud sumit :)
choudhary.sumit 11-Dec-12 6:47am    
ok, gud! now just delete your comments from here. see you.
Prasad Guduri 11-Dec-12 6:57am    
- Then take from databases. :)

I think you are looking some result like below
SQL
SELECT * FROM sys.server_principals


or perhaps, you can try with
SQL
EXEC master..sp_msloginmappings
 
Share this answer
 
v4
I have understood I think so Please have a look on that and let me know,
C#
public class Users{
public int UserID{get;set;}
public string FirstName{get;set;}
public string LastName{get;set;}
}

onlogin click()
{
Users obj=new Users();
int userid=obj.UserID;
}

Just like it ???????????????
Please let me know if i am in correct way or as per your requirement...
I will let you know more....
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900