Notice
Recent Posts
Recent Comments
목록SqlConnection (1)
분노의 챔질
반응형
C# DB연결하기
string connectionString = @"Server=서버명; user id=로그인ID; password=비밀번호; database=DATABASE이름; Integrated Security=true;"; //윈도우인증일때 사용 SqlConnection conn = new SqlConnection(connectionString); conn.Open(); string query = "Select * from dbo.Employee where EmployeeID = @EmployeeID"; SqlCommand command = new SqlCommand(query, conn); //StoredProcedure 사용 // SqlCommand command = new SqlCommand("dbo.up_S..
Programming/C#
2010. 2. 23. 12:43
반응형