clean database

Results 1 to 9 of 9
  1. #1
    Enthusiast kakaroto2000 is offline
    MemberRank
    Feb 2014 Join Date
    30Posts

    happy clean database

    can someone give me some simple command to delete all accounts created items and things linked accounts?
    I used my database for a long time for testing and now this 100% as I wanted, only to have many accounts created. just want to clean WHAT can be cleaned without ruining my database


    grateful


  2. #2
    wWw.F403.OrG S37uP!Update is offline
    MemberRank
    Oct 2008 Join Date
    F403.ORGLocation
    1,304Posts

    Re: clean database

    First of all run this query:
    Spoiler:

    DELETE FROM [Account].[dbo].[cabal_auth_table]
    DELETE FROM [Account].[dbo].[cabal_character_count_table]
    DELETE FROM [Account].[dbo].[cabal_charge_auth]
    DELETE FROM [Account].[dbo].[cabal_hackuser_list]
    DELETE FROM [Account].[dbo].[toolz_vote]

    DELETE FROM [Server01].[dbo].[cabal_bbead_table]
    DELETE FROM [Server01].[dbo].[cabal_character_table]
    DELETE FROM [Server01].[dbo].[cabal_craft_table]
    DELETE FROM [Server01].[dbo].[cabal_equipment_table]
    DELETE FROM [Server01].[dbo].[cabal_event_partydg]
    DELETE FROM [Server01].[dbo].[cabal_event_singledg]
    DELETE FROM [Server01].[dbo].[cabal_instantWar_nationRewardWarResults]
    DELETE FROM [Server01].[dbo].[cabal_instantWar_results]
    DELETE FROM [Server01].[dbo].[cabal_instantWar_statistics]
    DELETE FROM [Server01].[dbo].[cabal_Inventory_table]
    DELETE FROM [Server01].[dbo].[cabal_qddata_table]
    DELETE FROM [Server01].[dbo].[cabal_questdata_table]
    DELETE FROM [Server01].[dbo].[cabal_quickslot_table]
    DELETE FROM [Server01].[dbo].[cabal_record_combo]
    DELETE FROM [Server01].[dbo].[cabal_skilllist_table]
    DELETE FROM [Server01].[dbo].[cabal_warehouse_table]
    DELETE FROM [Server01].[dbo].[chat_buddy_table]
    DELETE FROM [Server01].[dbo].[chat_buddygroup_table]
    DELETE FROM [Server01].[dbo].[ChatBlacklist]
    DELETE FROM [Server01].[dbo].[deleted_cabal_character_table]
    DELETE FROM [Server01].[dbo].[Guild]
    DELETE FROM [Server01].[dbo].[GuildGroup]
    DELETE FROM [Server01].[dbo].[GuildMember]
    DELETE FROM [Server01].[dbo].[Mail]
    DELETE FROM [Server01].[dbo].[Mail]

    DELETE FROM [CabalCash].[dbo].[CashAccount]
    DELETE FROM [CabalCash].[dbo].[CashLog]
    DELETE FROM [CabalCash].[dbo].[MyCashItem]
    DELETE FROM [CabalCash].[dbo].[MyCashItem]


    After that you must reset the Identify numbers like UserNum, CharIdx, run this query:
    Spoiler:

    /*Reset Identity on tables with identity column*/
    exec sp_MSforeachtable 'IF OBJECTPROPERTY(OBJECT_ID(''?''), ''TableHasIdentity'') = 1 BEGIN DBCC CHECKIDENT (''?'',RESEED,0) END'


    First query should do the big part, i used on EPISODE 2 Database, but you can simply search in your DB if there's any table in plus with data in it.
    And then just get this as a example:
    DELETE FROM [db_name].[dbo].[table_name]
    db_name could be : Server01, Account, CabalCash, NetcafeBilling, etc.
    table_name could be : cabal_character_table, CashAccount, cabal_inventory_table, cabal _equip_table, etc.

  3. #3
    UtakAso Drav3n is offline
    MemberRank
    Aug 2011 Join Date
    PHLocation
    919Posts

    Re: clean database

    why not running the dbo.cleanaccount etc etc. on stored procedure?

  4. #4
    Enthusiast kakaroto2000 is offline
    MemberRank
    Feb 2014 Join Date
    30Posts

    Re: clean database

    :dddd

  5. #5
    Proficient Member behbeh111 is offline
    MemberRank
    Mar 2011 Join Date
    auth_tableLocation
    167Posts

    Re: clean database

    or re restore the databases. its most simple.

  6. #6
    wWw.F403.OrG S37uP!Update is offline
    MemberRank
    Oct 2008 Join Date
    F403.ORGLocation
    1,304Posts

    Re: clean database

    Quote Originally Posted by behbeh111 View Post
    or re restore the databases. its most simple.
    If you do alot of changes in your databases is not so simple, because you have to much to work after that :)

  7. #7
    Proficient Member behbeh111 is offline
    MemberRank
    Mar 2011 Join Date
    auth_tableLocation
    167Posts

    Re: clean database

    Quote Originally Posted by S37uP!Update View Post
    If you do alot of changes in your databases is not so simple, because you have to much to work after that :)
    its true, i just said easiest solution.

  8. #8
    Enthusiast Ericson Chan is offline
    MemberRank
    Jan 2013 Join Date
    /etc/Location
    35Posts

    Re: clean database

    Quote Originally Posted by behbeh111 View Post
    its true, i just said easiest solution.
    restore database easiest solution

  9. #9
    Account Upgraded | Title Enabled! Wataryx23 is offline
    MemberRank
    Jul 2014 Join Date
    274Posts

    Re: clean database

    why i cant create account USing GM Tools?

    how to solve this?




Advertisement