기초사용방법
-
C# MSSQL 연결닷넷/C# 2016. 7. 5. 13:45
using System.Data.SqlClient; // MSSQL 연결 할 때 제일 먼저 선언해 줄 것! Sql 아닙니다. SqlClient 입니다. namespace Monitoring{ public partial class frmMain : Form { public frmMain() { InitializeComponent(); } private void frmMain_Load(object sender, EventArgs e) { SqlConnection sqlConnection = new SqlConnection("Server=서버주소;Database=데이터베이스이름;User ID=아이디;Password=비밀번호"); if (sqlConnection != null && sqlConnection.S..