473,498 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs2005 - How to update a dataset xsd after table changes

Hello,

How to I update a table or tableAdapter in my dataset1.xsd after I have
added new columns to the underlying table?

I refreshed the datasource in server explorer - it worked there but had
no effect on my dataset.

I tried to refreshed the dataset in Data Sources window - nothing
happened - the new columns do not show.

With a copy of the database (made a backup) I tried to replace the old
table/tableAdapter by deleting the old one and draging in the updated
(refreshed) table from server explorer but then the upstream
relationships are not recognized in the DataSources window! And they
are not recognized by my forms even after I recreate the relationships
in the dataset1.xsd using the same name.

I don't want to remake the entire dataset and reconfigure every one of
the table adapters and addtional queries.

What do I do?

Here is the error:
An error occurred creating the form. See Exception.InnerException for
details. The error is: DataMember property
'FK_tbl020Version_tbl010Quote' cannot be found on the DataSource.

Here is the error text:
System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See
Exception.InnerException for details. The error is: DataMember
property 'FK_tbl020Version_tbl010Quote' cannot be found on the
DataSource."
Source="QmsUserInterface"
StackTrace:
at QmsUserInterface.My.MyProject.MyForms.Create__Inst ance__[T](T
Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at QmsUserInterface.My.MyProject.MyForms.get_QuotesOv erview()
at QmsUserInterface.My.MyApplication.OnCreateMainForm () in
D:\DBuchanan MyDocuments\Visual Studio 2005\Projects\Qms_01\QmsUI\My
Project\Application.Designer.vb:line 35
at
Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.OnRun()
at
Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Run(String[]
commandLine)
at QmsUserInterface.My.MyApplication.Main(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object
state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

By the way all my stored procedures have been properly updated with the
two new rows added.

Thank you,
dbuchanan

Dec 28 '05 #1
0 1094

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5797
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
0
1212
by: dbuchanan | last post by:
Hello, How to I update a table or tableAdapter in my dataset1.xsd after I have added new columns to the underlying table? I refreshed the datasource in server explorer - it worked there but...
21
2389
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
2
3862
by: BobLewiston | last post by:
Some of you may have seen my earlier thread “PasswordHash NULL problem”. I’ve started a new thread because investigation has shown that the problem is actually quite different than I previously...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.