Re: How to preserve data source relations ?



"nabil" <simsim_417@xxxxxxxxxxx> wrote in message
news:1132703552.700660.235750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi everyone,
>
> My question is simple : I am using a dataSet to populate data from Ms
> Access datasource. The datasource contains datarelations. But when I
> load the data and build the tables, the datarelations are not copied
> from the datasource to the program dataset (only the P.keys are
> keeped).
> Is there a simple command to preserve the database relations. or it is
> better to code my own datarelations ?
>
> Thank you
>

Relationships are not created automatically, you need to use ADOX to import
them. See if the following helps you.

http://support.microsoft.com/default.aspx?scid=kb;en-us;304322

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


.



Relevant Pages

  • How to preserve data source relations ?
    ... I am using a dataSet to populate data from Ms ... The datasource contains datarelations. ... load the data and build the tables, ...
    (microsoft.public.data.ado)
  • Re: Combo.Text Question **Urgent**
    ... For comboboxes bound to datasources insert an item into the datasource prior ... // Populate data table, e.g. from a DataAdapter or otherwise ... DataRow row = myDataTable.NewRow; ... // Set row values here ...
    (microsoft.public.dotnet.framework.compactframework)