Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create a windows application, from where I can login to ms sql server directly with authentication credentials. How to get the server authentication on my windows application with C#?
Posted
Updated 3-Mar-12 8:53am
v3
Comments
Sergey Alexandrovich Kryukov 3-Mar-12 14:54pm    
Added the tag "Forms".

What did you try? What's the problem?
--SA
Sergey Alexandrovich Kryukov 3-Mar-12 15:01pm    
Should I understand you this way: you want to use your Windows account credentials for SQL login? This is called "Windows Authentication". Please see my answer. If not exactly so, find out MSDN articles on the alternative authentication: "SQL Server" and "mixed".
--SA

1 solution

 
Share this answer
 
v2
Comments
JawadHafiz 6-Mar-12 6:54am    
i want to use sql authentication screen to extract tables from my database.
Sergey Alexandrovich Kryukov 7-Mar-12 0:48am    
No matter what to use authentication for. Authentication is authentication; when it is passed, it merely assume that a current user in a current session is the one who owns one of the user account records in the system. Then the system allows to do whatever this persons was authorized to do.
--SA

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