연결1 c# MSsql 연결 C#과 MSSQL 의 연결법은 굉장히 쉽다.코드는 아래와 같다. 우선using System.Data.SqlClient;왜 추가하는지는 알것이다. SqlConnection dbcon = new SqlConnection();dbcon.ConnectionString = "Server = localhost; database = 데이터베이스명; uid = 아이디; pwd = 비밀번호"; 2줄이면 간단하게 끝낼수 있다. 확인을 해야겠다. 하면 아래와 같이 화면을 구성하고 코딩해보자. private void button1_Click(object sender, EventArgs e) { SqlConnection dbcon = new SqlConnection(); dbcon.ConnectionString = "Serve.. 2013. 4. 24. 이전 1 다음