Hello, I have DataTable
with same structure in SqlServer DB Table.
To save data in a this DataTable to Sql DB I use code below:
sqlCommand mcd;
for(int i=0;i<dataTable.Rows.Count;i++)
{
mcd=new SqlCommand();
cmd.CommandText="Insert into MSSQLtable values("+dataTable.Rows[i][0]+dataTable.Rows[i][1]+")";
cmd.ExecuteNonQuery();
}
How can I Insert Data with another way?