[Guide] How to migrate your OLD ep6DB to EP7DB

Page 1 of 3 123 LastLast
Results 1 to 15 of 40
  1. #1
    Enthusiast ┼VaNzMackieL┼ is offline
    MemberRank
    Jul 2011 Join Date
    30Posts

    [Guide] How to migrate your OLD ep6DB to EP7DB

    GUIDE How to migrate your ep6DB to EP7DB With out loosing your inventory item I also include a fresh db all you need to do is migrate the data base table column's

    STEP 1: Restore And Re-name Your old RanGame1 Data Base to RanGame1_ep6

    STEP 2: Restore the data base bak file that i included My dataBase is back up is mssql2005 and mssql2008 RanOnline_EP7_FRESH_DB_2005_and_2008_BACKUP.7z

    STEP 3: Now you have to modify the primary key in ChaInfo in RanGame1(THE DATA BASE THAT I INCLUDED IN STEP 2) of your new fresh ep7 Data Base so that the data on the columns to be copied on your old database will be accepted by the new database.

    3.1): In Your Object Explorer Locate RanGame1 expand or click the (+) sign.

    3.2): after expanding RanGame1 find Table and expand again or click the (+) sign.

    3.3): then locate Chainfo

    Right click on ChaInfo
    Design
    and look for the ChaNum Column <<<This is the primary key
    then look for Identify Specification
    Set it to NO
    then save table

    it should look like this




    STEP 4: EXCUTE THIS INTO YOUR NEW QUERY AFTER EXECUTING THIS THEN YOU SEE SUCCESS THEN THE DATA BASE MIGRATION IS DONE BUT IT IS NOT YET FINISH.. YOU MUST FOLLOW THE FINAL STEP

    Code:
    USE RanGame1
    
    INSERT INTO ChaInfo 
    (
    chanum,
    SGNum,
    UserNum,
    ChaName,
    ChaGuName,
    ChaTribe,
    ChaClass,
    ChaSchool,
    ChaHair,
    ChaFace,
    ChaLiving,
    ChaLevel,
    ChaMoney,
    ChaPower,
    ChaStrong,
    ChaStrength,
    ChaSpirit,
    ChaDex,
    ChaIntel,
    ChaStRemain,
    ChaExp,
    ChaViewRange,
    ChaHP,
    ChaMP,
    ChaStartMap,
    ChaStartGate,
    ChaPosX,
    ChaPosY,
    ChaPosZ,
    ChaSaveMap,
    ChaSavePosX,
    ChaSavePosY,
    ChaSavePosZ,
    ChaReturnMap,
    ChaReturnPosX,
    ChaReturnPosY,
    ChaReturnPosZ,
    ChaBright,
    ChaAttackP,
    ChaDefenseP,
    ChaFightA,
    ChaShootA,
    ChaSP,
    ChaPK,
    ChaSkillPoint,
    ChaInvenLine,
    ChaDeleted,
    ChaOnline,
    ChaCreateDate,
    ChaDeletedDate,
    ChaStorage2,
    ChaStorage3,
    ChaStorage4,
    ChaGuSecede,
    ChaQuest,
    ChaSkills,
    ChaSkillSlot,
    ChaActionSlot,
    ChaPutOnItems,
    ChaInven,
    ChaSex,
    ChaReborn,
    ChaHairColor
    
    ) 
    
    select 
    
    ChaNum,
    SGNum,
    UserNum,
    ChaName,
    ChaGuName,
    ChaTribe,
    ChaClass,
    ChaSchool,
    ChaHair,
    ChaFace,
    ChaLiving,
    ChaLevel,
    ChaMoney,
    ChaPower,
    ChaStrong,
    ChaStrength,
    ChaSpirit,
    ChaDex,
    ChaIntel,
    ChaStRemain,
    ChaExp,
    ChaViewRange,
    ChaHP,
    ChaMP,
    ChaStartMap,
    ChaStartGate,
    ChaPosX,
    ChaPosY,
    ChaPosZ,
    ChaSaveMap,
    ChaSavePosX,
    ChaSavePosY,
    ChaSavePosZ,
    ChaReturnMap,
    ChaReturnPosX,
    ChaReturnPosY,
    ChaReturnPosZ,
    ChaBright,
    ChaAttackP,
    ChaDefenseP,
    ChaFightA,
    ChaShootA,
    ChaSP,
    ChaPK,
    ChaSkillPoint,
    ChaInvenLine,
    ChaDeleted,
    ChaOnline,
    ChaCreateDate,
    ChaDeletedDate,
    ChaStorage2,
    ChaStorage3,
    ChaStorage4,
    ChaGuSecede,
    ChaQuest,
    ChaSkills,
    ChaSkillSlot,
    ChaActionSlot,
    ChaPutOnItems,
    ChaInven,
    ChaSex,
    ChaReborn,
    ChaHairColor
    
    from RanGame1_ep6.dbo.chainfo

    STEP 5: Now you have to RE-modify the primary key in ChaInfo in RanGame1(THE DATA BASE THAT YOU MODIFIED IN STEP 3)

    5.1): In Your Object Explorer Locate RanGame1 expand or click the (+) sign.

    5.2): after expanding RanGame1 find Table and expand again or click the (+) sign.

    5.3): then locate Chainfo

    Right click on ChaInfo
    Design
    and look for the ChaNum Column <<<This is the primary key
    then look for Identify Specification
    Set it to YES
    then save table

    it should look like this






    then it's now done...

    about the RanShop and RanUser just use your ep6 there is no files that need to be modified.. ONLY THE RanGame1 AND RanLog Are important.... about the RanLog Thing just Restore my RanLog that i include in the data base...

    if you have question feel free to ask.. me

    just read my whole post.. before asking question




    NOTE : IF YOU ENCOUNTER THIS ERROR


    Quote Originally Posted by dev02 View Post
    finalyy yrah gonna try this..

    ---------- Post added at 04:37 PM ---------- Previous post was at 03:36 PM ----------

    I got error on this one


    see:





    try this.. this should fix your problem..
    Last edited by ┼VaNzMackieL┼; 09-08-11 at 11:35 AM.


  2. #2
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    Nice Guide. . I will Try this Later Sir. .

  3. #3
    Account Upgraded | Title Enabled! andrei07 is offline
    MemberRank
    May 2010 Join Date
    Loading...Location
    374Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    Does this work for ep3 to ep4 too?

  4. #4
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    I think Yes

  5. #5
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    How About this Error Sir



    Msg 2601, Level 14, State 1, Line 3
    Cannot insert duplicate key row in object 'dbo.ChaInfo' with unique index 'IX_ChaInfo'.
    The statement has been terminated.

    ---------- Post added at 03:25 PM ---------- Previous post was at 02:44 PM ----------

    Anyone Know How to fix this? I always Stock in this error

  6. #6
    QT is better than VS tearhear18 is offline
    MemberRank
    Jul 2009 Join Date
    earthLocation
    980Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    @TS
    Ranlog might useful but can override with new ep7 v1 DB with out having bug.. just use restore process ..
    should work with ep4 also but you need to modify the script to be able to work with ep4 mostly in dbo.chainfo :P
    @METAL
    Try to follow procedure maybe you left something

  7. #7
    Account Upgraded | Title Enabled! dev02 is offline
    MemberRank
    Sep 2010 Join Date
    Ottawa OntarioLocation
    592Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    finalyy yrah gonna try this..

    ---------- Post added at 04:37 PM ---------- Previous post was at 03:36 PM ----------

    I got error on this one
    Right click on ChaInfo
    Design
    and look for the ChaNum Column <<<This is the primary key
    then look for Identify Specification
    Set it to YES
    then save table
    see:

  8. #8
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    Tnx to Sir Tearhear for the Advice and also sir Jolin. .

  9. #9
    Enthusiast sintonizaire is offline
    MemberRank
    Jun 2011 Join Date
    46Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB


  10. #10
    Proficient Member Hitachi is offline
    MemberRank
    Jul 2011 Join Date
    Nihon DesuLocation
    193Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    How To restore 2 rangame? cant restore T_T

  11. #11
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    Quote Originally Posted by sintonizaire View Post
    Original Post But Thats For EP4-EP5 Migrate to EP6. .This Guide For EP6 migrate to EP7.


    Sir Tearhear Said If you Try This To your Old EP Maybe It Works But You need to modify the Codes

  12. #12
    Enthusiast ┼VaNzMackieL┼ is offline
    MemberRank
    Jul 2011 Join Date
    30Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    try this.. this should fix your problem..


    Quote Originally Posted by dev02 View Post
    finalyy yrah gonna try this..

    ---------- Post added at 04:37 PM ---------- Previous post was at 03:36 PM ----------

    I got error on this one


    see:

  13. #13
    Valued Member devilzcry is offline
    MemberRank
    Jun 2010 Join Date
    126Posts

    Re: [Tutorial]GUIDE How to migrate your OLD ep6DB to EP7DB

    Quote Originally Posted by Hitachi View Post
    How To restore 2 rangame? cant restore T_T
    Got the same problem. Anyone can tell us how to do it?

  14. #14
    Account Upgraded | Title Enabled! metal666 is offline
    MemberRank
    Sep 2010 Join Date
    532Posts

    Re: [Guide] How to migrate your OLD ep6DB to EP7DB

    SS please . . What your Problem Devil?

  15. #15
    Valued Member devilzcry is offline
    MemberRank
    Jun 2010 Join Date
    126Posts

    Re: [Guide] How to migrate your OLD ep6DB to EP7DB

    Here's the error. Thanks for the prompt reply metal.
    Attached Thumbnails Attached Thumbnails error.jpg  
    Last edited by devilzcry; 13-08-11 at 05:12 PM. Reason: Sorry the first image was too small



Page 1 of 3 123 LastLast

Advertisement