Hi Guys, in this section, I will
share how to make connection from Visual Studio C# to SQL-Server 2010...
- You have to open your Microsoft Visual Studio 2010, select File ->New Project. Choose Windows Forms Application and fill the name or write the name of your project. I give my project name First_Exercises and the click OK.
- To Make connection in SQL Server, choose your database in sql server that you want to connect to sql server. To show the server explorer, select View à Server Explorer. Right Click at Data Connection then click Add Connection.
- Make Sure that you choose Data source Microsoft SQL Server (SqlClient). In server Name, type the name of your sql server .
- Select or Enter a database name, then it show you the database name that success being connected with sql server. Test Connection, then click OK.
- Horray you have successes to try make connection between C# and SQL Server!!!!!! ^^.
Tidak ada komentar:
Posting Komentar