Solved

Controlling the order data is saved in a DataSet

Posted on 2013-06-28
2
303 Views
Last Modified: 2013-07-04
I've got a number of tables in my DataSet, but I can't seem to control the order they are saved in, and sometimes this results in foreign key errors.

There are lots of useful tips about using DataSets - for example here:

http://www.dotnetperls.com/dataset

but I can't find how to ensure one table is saved first to fix this problem. Can anyone point me in the right direction here?
0
Comment
Question by:purplesoup
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
Comment Utility
Do not Update the DataSet. Update the individual tables, in the proper order. The mechanism for tables is the same as for a DataSet.
0
 

Author Comment

by:purplesoup
Comment Utility
ok thanks - well it turns out after some investigation that with foreign keys we had code to check the relations between the tables and update consistently, but somehow bad data was getting into the DataSet which lost the relations - so yes, the answer is to update the tables individually in the proper order.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now