DataTable dt = new DataTable(); populateTable(); SqlConnection sqlConn = new SqlConnection( ConfigurationManager.ConnectionStrings["conString"].ConnectionString.ToString()); SqlCommand sqlCmd = sqlConn.CreateCommand(); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandText = "myStoredProcedure"; sqlCmd.Parameters.Add("@Table", SqlDbType.Table).Value = dt; sqlCmd.Connection.Open(); sqlCmd.ExecuteNonQuery(); sqlCmd.Connection.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)