Minggu, 03 Juni 2012


Hi Guys, in this section, I will share how to make connection from Visual Studio C# to SQL-Server 2010...

  1.  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. 
  2. 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.
  3.  Make Sure that you choose Data source Microsoft SQL Server (SqlClient). In server Name, type the name of your sql server .
  4. 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.
  5. Horray you have successes to try make connection between C# and SQL Server!!!!!! ^^.


Tidak ada komentar:

Posting Komentar