How to insert data in two dependent table through one query in C# ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
matt cuprykPosted Apr 8, 2011, 1:36 PM
Suthish NairPosted Mar 31, 2011, 9:09 AM
for eg:
cmd.CommandText = "Insert into table1 (column1) values (@column1); Insert into table2 (column1) values (@column1);";