How to create a SQL Server login for Microsoft SQL Server
The most common SQL Server Connection for development environments in .NET are Data Source=localhost; Database=your_test_db; Trusted_Connection=True. Notice the Trusted_Connection is set to True and a username and password is not supplied. This is because it uses Windows Authentication. At times this is not enough, and we need a SQL Server login. This is generally true for other environments such as test and production. Below I breakdown the various SQL commands in order to create a SQL server login and grant necessary access....