Groups | Blog | Home
all groups > dotnet ado.net > september 2007 >

dotnet ado.net : update dataset


antonello
9/28/2007 5:20:00 AM
Hi to all,
I've a sqlserver 2005 database and an application developed with vb.net 2005.
To manage data I used typed datasets created by the wizard.
Now I need to change the data type of a db field from interger to floating.
When I change the data type the dataset is not updated and I' m not able to
see the contents of the fields in my application. I see only blank.
How can I update the dataset?
Thank you
Antonello
Jesse Houwing
9/29/2007 1:29:24 PM
Hello antonello,

[quoted text, click to view]

I usually remove all columns except teh primary key from the dataset by hand
and then rightclick it and reconfigure teh datasource. Missing columns will
be re-added. Existing columns will be ignored.

Another option is to remove the table altogether and drag it back onto the
designer surface.
--
Jesse Houwing
jesse.houwing at sogeti.nl

antonello
10/2/2007 7:43:06 AM


[quoted text, click to view]

Thank you Jesse, it works fine.
I chose removing the columns and reconfigure the dataset.
Bye
AddThis Social Bookmark Button