Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322

    Unanswered: bcp in child before parent

    Huh?

    I've got good RI data...BUT..a developer loaded the tables in alpha table order....

    Such that the child loaded BEFORE the parent....

    Huh?

    Got a test being set up now to mess with the child file to add a key that doesn't exist in the parent...

    But Why is this allowed?

    In DB2 you can specify

    LOAD DATA REPLACE NO CHECK....

    On the load card...you then need to run a check after to verify the data...

    Is that what's going on? Is there such a utility in SQL Server to run a check post load?

    I'm confused....

    Any comments appreciated.

    Thanks



    Brett

    8-)
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    OK, -h option would allow you to check constraints

    Otherwise it doesn't

    So then if you use the default, How do you make sure the data is ok?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    d'oye.....

    DBCC CHECKCONSTRAINTS

    What a maroon.....
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •