Dataset update inconsistency
I am working on a distributed web service, local client, database app in C#
..NET 2.0. I have limited experience in the technology, but I am an
experienced engineer.
I have a data set with a table 'SUMSGroup' In the db I have added two new
columsn to the table and manually added them to the dataset using the
designer.
I have rebuilt the app, updated web references and published the web site.
When I run the app, the generated data structures are missing the two new
columns so that the db stored procedure returns an error. When I examine the
object from the generated class 'SUMSGroupDataTable' with quick watch at run
time, the two new columns are missing. But if I use the IDE to go to the
definition of the data table class, I can see the 2 columns listed in the
generated code.
What explanation could there be for the inconsistency? My working assumption
is that I have somehow failed to publish the changes to the web service
properly.
Thanks,
Andrew
Date:Tue, 7 Aug 2007 20:18:03 -0700
Author:
|
RE: Dataset update inconsistency
Hi Andrew,
Welcome to MSDN Managed Newsgroup!
Based on my understanding, you first created a strong typed DataSet using
the DataSet Designer and you're returning the DataSet to your client via
Web Service. After you added two new columns to the table, you found the
new columns are not in the DataSet returned to client.
Please feel free to correct me if I've misunderstood anything.
You once mentioned that you "added two new columns to the tble and manually
added them to the dataset", do you mean that you simply created two new
fields in the DataTable's fields list?
Would you please try following actions to see if they help:
1) Delete the two fields that you manually added previously.
2) Right-click on the table in the DataSet Designer, select "Configure...",
this will bring up the "TableAdapter Configuration Wizard" dialog again;
3) If you are using SQL statements: if you're using "Select * from ...",
then you don't have to do anything, simply click Finish; otherwise, you can
manually edit the SQL to include those two new fields.
4) If you're using Stored Procedures, then you can either create new stored
procedures or you need to use the DBMS management tool to edit the stored
procedures there, then choose "Use existing stored procedures" and select
them.
Hope this helps. Please feel free to let me know if there's anything
unclear. Thanks.
Sincerely,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Wed, 08 Aug 2007 05:38:30 GMT
Author:
|