0
TableAdapter
을 사용하여 SQL Server 데이터베이스를 업데이트/삽입 할 행이 여러 개 있습니다. 그것들을 함께 배치하는 방법이 있습니까? 그래도 여전히 UPDATE
문장의 목록 일 때 적어도 데이터베이스에 대한 원격 호출은 하나입니까? C# DataSet 일괄 업데이트
update mytable set col = val where id = 1
update mytable set col = val where id = 2
update mytable set col = val where id = 3
...
update mytable set col = val where id = 432
그럼 난 그냥
SqlCommand.ExecuteNonQuery();
고맙습니다. 고마워. –