开发者

Dynamically modifying .NET DataSet DataTable

I’ve got a predefined Dataset with DataTables and DataAdapters in my applications. However, I now want to be able to modify the SP in SQL Server to add fields as needed, and have that reflected in the DataSet’s DataTable dynamically. This goes from a WebService into XML then goes to the client and gets converted back to the DataSet and DataTable.

I can call the Stored Procedures directly and get a dataset back as a result, but 开发者_StackOverflow中文版I want to dynimcally update the datatable in master Dataset to match the new results and then pass this back as the XML result from the WebService.


Shouldn't be a problem. Just ensure that your SQL Select does not specify the column names to return, i.e. SELECT * FROM ... (although such SQL statements are obviously not best practice!)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜