Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to insert data into multiple tables using asp.net c#

sqlcmd.CommandText = "INSERT INTO Table1(Name, Address) VALUES(@Name, @Address);" +
"INSERT INTO Table2(Company, Address2) VALUES(@Company, @Address2)";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #data #multiple #tables
ADD COMMENT
Topic
Name
7+9 =