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

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


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. :)


In my case, I did add this line:

    Me.NameTableAdapter.Fill(Me.AttendanceDbDataSet1.Name)