How do I get Visual Studio 2010 to refresh my DataSet after I have updated the Database source?

后端 未结 1 932
悲哀的现实
悲哀的现实 2021-01-02 22:46

I have added new columns to an existing MS Access 2010 Database that I have hooked into Visual Studio 2010. After updating the Database, the Data S

相关标签:
1条回答
  • 2021-01-02 23:07

    Mine turns out to be close to a duplicate question... See this for the answer (and yes, it is as simple as going through the TableAdapter configuration under the DataSet designer.)

    Update DataSet structure in Visual Studio to match new SQL Database Structure

    Also, see: http://msdn.microsoft.com/en-us/library/ms171902%28VS.80%29.aspx (How to edit TableAdapters)

    ... and, as I figured out after nearly losing my mind, I was actually one sub-folder off (meaning there were two copies of the database in my project folder). Projects -> MyProject -> db.accdb, and Projects -> MyProject -> MyProject -> db.accdb. If you're having this issue and querying is NOT working, look VERY closely at the path. VERY CLOSELY. :)

    0 讨论(0)
提交回复
热议问题