Query delete all itens from storage

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    Query delete all itens from storage

    hello!

    I need a query to remove ALL equipment all accounts that are in my DB. Does anyone have a query that, please?


  2. #2
    Pee Aitch Pee Dave is offline
    MemberRank
    Mar 2011 Join Date
    The NetherlandsLocation
    722Posts

    Re: Query delete all itens from storage

    TRUNCATE TABLE AccountItem < storage/central bank
    TRUNCATE TABLE CharacterItem < character inventory

  3. #3
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    Re: Query delete all itens from storage

    Thanks Dave, but do not even know why I created this topic.

    It was only used DELETE FROM Table ... Use panel ready just leaving me injured O_O

  4. #4
    Pee Aitch Pee Dave is offline
    MemberRank
    Mar 2011 Join Date
    The NetherlandsLocation
    722Posts

    Re: Query delete all itens from storage

    Quote Originally Posted by Enough View Post
    Thanks Dave, but do not even know why I created this topic.

    It was only used DELETE FROM Table ... Use panel ready just leaving me injured O_O
    TRUNCATE will also reset the identity seed.

  5. #5
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    Re: Query delete all itens from storage

    Quote Originally Posted by Dave View Post
    TRUNCATE will also reset the identity seed.
    Yes, thank you.

  6. #6
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    Re: Query delete all itens from storage

    Hey, Dave!

    I'm trying to use TRUNCATE table dbo.Item, but I am with the following error when it runs:
    Msg 4712, Level 16, State 1, Line 1
    Can not truncate table 'dbo.Item' because a FOREIGN KEY constraint referencing it.

    How can I fix this and reset that table?

  7. #7
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Re: Query delete all itens from storage

    Quote Originally Posted by Enough View Post
    Hey, Dave!

    I'm trying to use TRUNCATE table dbo.Item, but I am with the following error when it runs:
    Msg 4712, Level 16, State 1, Line 1
    Can not truncate table 'dbo.Item' because a FOREIGN KEY constraint referencing it.

    How can I fix this and reset that table?
    remove foreign key

  8. #8
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    Re: Query delete all itens from storage

    How ?

  9. #9
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: Query delete all itens from storage

    There are plenty of posts and topics about removing the key from your dbo.Item. Look it up.



Advertisement