Connect SQL Server with ASP.NET

Hello Programmers, here is the article to connect SQL server with ASP.NET. Microsoft ASP.NET has nice facility where you can easily connect any database with ASP.NET. this article i am using SQL Server 2019 and ASP.NET MVC.
Let’s see the all important steps to connect asp.net with SSMS.

1.Click “Tools” Tab and next Click “Connect to Database”.
Choose “Microsoft SQL Server” from Data source and click “Continue” button. Give Microsoft SQL Server name,you can select Windows Authentication or you can give SQL Server Authentication.Enter User name and Password. Select or enter a database name from drop-down box. Click “Test Connection”
button. if connection succeeded then click OK. After Clicking OK button,you can see SQL Server successfully connected
with ASP.NET.See in below image.

Sample Program.See below image.

Happy Coding…Thanks.

Post Author: adama