0
。目前,我有要求将新列添加到数据表中。因此我在数据表中添加了新列。但SqlDataProvider.Fill函数没有填充新添加的列的数据。我想知道如何在数据或存储过程发生变化时修改数据集。 enter image description here当使用SqlDataProvider.Fill函数时,数据集没有填充新添加的列的数据我使用数据源和数据表来检索报告查看器的数据
。目前,我有要求将新列添加到数据表中。因此我在数据表中添加了新列。但SqlDataProvider.Fill函数没有填充新添加的列的数据。我想知道如何在数据或存储过程发生变化时修改数据集。 enter image description here当使用SqlDataProvider.Fill函数时,数据集没有填充新添加的列的数据我使用数据源和数据表来检索报告查看器的数据
string queryString =
"SELECT CustomerID, CompanyName FROM dbo.Customers";
SqlDataAdapter adapter = new SqlDataAdapter(queryString, connection);
DataSet customers = new DataSet();
adapter.Fill(customers, "Customers");