윈폼_DB연동

sz L·2023년 4월 11일

씨샵 윈폼

목록 보기
6/7
post-thumbnail

sql server management studio 실행(SSMS exe)


DataGridView에 재생아이콘으로 들어가서
데이터베이스 -> 데이터세트 -> 예 선택 -> employ선택 -> 마침

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace wf08dbhandling
{
    //string connstring = "Data Source=localhost;Initial Catalog=Northwind;Persist Security Info=True;User ID=sa;Password=12345;";
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
            // TODO: 이 코드는 데이터를 'northwindDataSet.Employees' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
            this.employeesTableAdapter.Fill(this.northwindDataSet.Employees);

        }
    }
}
profile
가랑비는 맞는다 하지만 폭풍은 내 것이야

0개의 댓글