Silly SQL

I imported a hundred or so records into TEST and have no further use for them.  However, when I try to delete them, I get the following message:

The DELETE statement conflicted with the REFERENCE constraint "FK_T_LIST_CONTENTS_T_CUSTOMER".

Any idea as to what the actually means (and, more importantly, how to resolve it)?  It's not a table, though it looks like one.

BONUS BREAKFAST TRIVIA: Watching TV uses up 50 percent more calories than sleeping.

  • Hi Matt – this means that your test customers are referenced in T_LIST_CONTENTS.  Records cannot be deleted from T_CUSTOMER if they are referenced elsewhere (including tables like T_ADDRESS, TX_CUST_SAL, etc…)

     

    --Matt

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Matt Gonzales
    Sent: Monday, July 20, 2009 11:22 AM
    To: Matt Cooper
    Subject: [Tessitura Technical Forum] Silly SQL

     

    I imported a hundred or so records into TEST and have no further use for them.  However, when I try to delete them, I get the following message:

    The DELETE statement conflicted with the REFERENCE constraint "FK_T_LIST_CONTENTS_T_CUSTOMER".

    Any idea as to what the actually means (and, more importantly, how to resolve it)?  It's not a table, though it looks like one.

    BONUS BREAKFAST TRIVIA: Watching TV uses up 50 percent more calories than sleeping.




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Hi Matt,

     

    I think its because they are part of a list that someone has created. Once you delete the list it should be fine.

     

    Gary

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Matt Gonzales
    Sent: 20 July 2009 16:22
    To: Halliday, Gary
    Subject: [Tessitura Technical Forum] Silly SQL

     

    I imported a hundred or so records into TEST and have no further use for them.  However, when I try to delete them, I get the following message:

    The DELETE statement conflicted with the REFERENCE constraint "FK_T_LIST_CONTENTS_T_CUSTOMER".

    Any idea as to what the actually means (and, more importantly, how to resolve it)?  It's not a table, though it looks like one.

    BONUS BREAKFAST TRIVIA: Watching TV uses up 50 percent more calories than sleeping.




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!


    www.southbankcentre.co.uk

    Ticket Office 0871 663 2500

    Southbank Centre is a Registered Charity No. 298909
    ______________________________________________________________________

    This message (and files transmitted with it) may contain confidential or copyright information. If you receive it in error, please notify the sender and delete it from your computer.

    _______________________________________________________________________