CREATE proc [testinsert] ( @nameE nvarchar(max), @nameT nvarchar(Max) ) as begin INSERT INTO tblmultilangstudentE ([name]) VALUES (@nameE); INSERT INTO tblmultilangstudentT ([name]) VALUES (@nameT); end
SqlCommand cmd = new SqlCommand("testinsert", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@nameE", txtEng.Text); cmd.Parameters.AddWithValue("@nameT", txtTamil.Text); con.Open(); cmd.ExecuteNonQuery(); con.Close();
cmd.Parameters.Add("@CategoryName", SqlDbType.NVarChar)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)