When using VB.Net 2003 updating a database is fairly straightforward. You drag the table onto the form, a sqlConnection & sqlDataAdaptor are automatically generated. You then configure these objects and then generate and configure a data set. All that's left is to write the code for the update.
In VB 2005 it doesn't like it if you try to drag a table. I have tried using the Add Data Source ,configuring, and coding an update statement. I can see the data in the dataset. However, when I go back to the database it is not updating.
Briefly, what is the correct procedure to do this. I guess I'm missing something or my update statement is not correct.
Any help would be greatly appreciated.
Thank You,
Ed

Update SQLdataBase w/ VB 2005 Beta2
Kaustubh194874
Here is a simple procedure to update a table...
Create a datasource
Drag it into the form
Goto *.xsd file
Click the TableAdapter
In the properties create a UpdateCommand by selecting the dropdownlist and selecting new.
Expand the UpdateCommand and fill-in the necessary SQLStatements and parameters...
cheers,
Paul June A. Domag
Praveen Chintala
I'll try putting in a new update statement and see if that works.
Paul, thanks again and,
Best Regards,
Ed
pamskate5
I have been having this problem also, however my problem was just with a simple local connection to an Access Database.
I was having same problem where the data would not update in the original database source but would during running of the project.
Having just read the previous article, i have just created a new project and created a new datasource to the sample Northwind database, HOWEVER this time when prompted if i want to include the file with my project, I answered NO and everything is now working as expected!!! Previously I had included it with my Project and it would never work.
Tested again with another database, just in case it was a fluke :-) and that worked also, so the answer seems to be not to include the source with the project.
Andy Perry
Mal409
I guess there is something that I don't understand when trying to reference the SQL 2005. I'll just have to figure it out.
Thanks again - you got me thinking in the right direction.
Best Regards,
Ed
Vi Truong
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=7ad5edc4-3b3e-4db5-9529-f364d24b0955
My work around is to attach the database to SQLExpress rather than have it in the project as a local file. Update and insert work fine then.
Chanduu
Gene