Transaction C# / ASP.NET에서 이용하기
SqlTransaction trans = null; try { upcomm = new SqlCommand(UpdateRefer, conn); upcomm.Parameters.AddWithValue("@refer", refer); upcomm.Parameters.AddWithValue("@step", step); incomm = new SqlCommand(InsertRefer, conn); incomm.Parameters.AddWithValue("@writer",txtWriter.Text.Trim()); incomm.Parameters.AddWithValue("@title", txtTitle.Text.Trim()); incomm.Parameters.AddWithValue("@contents",txtCont..
C#
2007. 8. 10. 18:00