question about database relationships

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean McKaharay

    #1

    question about database relationships

    I have 2 disconnected servers I need to take new data from server 1 to
    server 2. I am exporting the data from server1 to xml. My thought was going
    to import the xml into a dataset then do bulk insert and updates, but to do
    that I need to find out what order the tables need to be loaded so I don't
    break any constraints. Does anyone know how I can get that order?

    Sean




  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: question about database relationships

    Sean,

    This all depends on the underlying data store. If you need to do this
    in a generic way, you should use COM interop and use the ADOX libraries,
    which will get you schema information about a database, which you can then
    use to make your determinations about order.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Sean McKaharay" <sean.mckaharay @expoexchange.c om> wrote in message
    news:OTF2WDvnDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
    > I have 2 disconnected servers I need to take new data from server 1 to
    > server 2. I am exporting the data from server1 to xml. My thought was[/color]
    going[color=blue]
    > to import the xml into a dataset then do bulk insert and updates, but to[/color]
    do[color=blue]
    > that I need to find out what order the tables need to be loaded so I don't
    > break any constraints. Does anyone know how I can get that order?
    >
    > Sean
    >
    >
    >
    >[/color]


    Comment

    Working...