SQL Script

Results 1 to 7 of 7
  1. #1
    Valued Member kubaa1 is offline
    MemberRank
    Apr 2008 Join Date
    145Posts

    SQL Script

    Hey guys, so me and my friend an idea we would like to realise in our server.

    If someone has any knowledge with SQL Coding and would be ableto help us out, I would be eternally grateful :D

    What I want to do is to create a script that would automatically trigger itself every 7 days.

    This script would add a certain number of W Coin P to every account, I guess it won't be too hard, since there is no special rules. Just a simple "Add Wcoin P to All Account every 7 days" script.

    If anyone can give us a few tips, or even a ready script, it would be greatly appreciated! :)


    Thanks guys


  2. #2
    CCCP Mu Owner 15351535 is offline
    MemberRank
    Sep 2007 Join Date
    Russia/GermanyLocation
    855Posts

    Re: SQL Script

    jou can make it via sql job
    replace table names and it is done ;)
    UPDATE Character
    SET Money = 2000000000

  3. #3
    Valued Member kubaa1 is offline
    MemberRank
    Apr 2008 Join Date
    145Posts

    Re: SQL Script

    I worked it out, but thanks for your reply! :)

    I had to download an external application that runs scripts every set intervals, since SQL Express doesn't come with SQL Agent.

  4. #4
    CCCP Mu Owner 15351535 is offline
    MemberRank
    Sep 2007 Join Date
    Russia/GermanyLocation
    855Posts

    Re: SQL Script

    dont know,i make it via sql jobs,there can you use (every min,every hour,every day or 1 day of week)
    and it works automatic after

  5. #5
    Valued Member kubaa1 is offline
    MemberRank
    Apr 2008 Join Date
    145Posts

    Re: SQL Script

    Quote Originally Posted by 15351535 View Post
    dont know,i make it via sql jobs,there can you use (every min,every hour,every day or 1 day of week)
    and it works automatic after
    You probably have a better version of SQL. Im using sql express.

  6. #6
    CCCP Mu Owner 15351535 is offline
    MemberRank
    Sep 2007 Join Date
    Russia/GermanyLocation
    855Posts

    Re: SQL Script

    i use sql 2008 r2
    here is link for you

    https://mega.co.nz/#!0UVyWbiC!yLfgJE...ivGV9q7ub7AAdc

  7. #7
    Valued Member kubaa1 is offline
    MemberRank
    Apr 2008 Join Date
    145Posts

    Re: SQL Script

    Im currently using the Express version from the microsoft website. I was considering getting a ISO from piratebay, but since I found a workaround. I'll allow myself to avoid the trouble of reinstalling sql :D

    Thanks for the link, maybe someone else will find it useful.



Advertisement