Write Dataset to SQL Table
问题 I have converted a complex XML File to a Dataset that has 7 Tables and around 70 Columns I have created the tables in SQL Server to match the ones in the Dataset using the XML Schema. How can I easily write my Dataset to the SQL tables? 回答1: Depending on how many rows you have in the DataSet, probably the best thing to do would be to use a SqlCommandBuilder, like so: var connection = new SqlConnection("my connection string"); connection.Open(); // repeat for each table in data set var