Connections supported in Microsoft SQL Server - C#.NET

What are the type of authentications supported to access a database in .NET?

Windows Authentication

This kind of authentication is used for an application that works on a windows-based intranet. It uses current windows identity established on OS to access the database. Windows authentication is recommended when you want to avoid storing user names and passwords in database connection strings. You won't be able to use windows authentication when your application and database are in separate domains without trust.

SQL Server authentication

This should be used when Windows Authentication is not possible.
Windows Authentication and SQL Server authentication - C#.NET
C#.NET - Out of Windows Authentication and SQL Server authentication, which one is trusted?...
Throw your own exceptions - C#.NET
C#.NET - It is a bad idea to throw your own exceptions. comment - Throwing your own exceptions means there is some design problem in the program...
How do you inherit derived class from a base class in C#.NET?
C#.NET - How do you inherit derived class from a base class in C#.NET? - By using colon and then the name of the base class...
Post your comment