MsSql querys

Results 1 to 4 of 4
  1. #1
    Cyclops-Network Owner Alexsh is offline
    MemberRank
    Sep 2009 Join Date
    New YorkLocation
    306Posts

    MsSql querys

    While managing my server I had to make a few queries in order to make managing the database easier. So I thought i'd release them for anyone else who wants them.

    //Changes character authority (Make them a GM...etc)
    update [CHARACTER_TBL] set m_chAuthority = 'F/P/S' where m_szName = 'CHARACTERNAME'

    //Sets Ban Start Time
    update [ACCOUNT_TBL_DETAIL] set BlockTime = '20090210' where account = 'ACCOUNTNAME'

    //Sets Ban End Time
    update [ACCOUNT_TBL_DETAIL] set EndTime = '' where account = 'ACCOUNTNAME'

    //Removes the guild wait time on a certain character
    update [CHARACTER_TBL] set m_tGuildMember = '' where m_szName = 'CHARACTERNAME'

    //Gets a character's account ID
    select account from [CHARACTER_TBL] where m_szName = 'CHARACTER NAME'

    //Displays all the characters on an account
    select m_szName from [CHARACTER_TBL] where account = 'ACCOUNTNAME'

    //Sets an IP address on a certain account
    update [ACCOUNT_TBL_DETAIL] set ip = 'IP ADDRESS' where account = 'ACCOUNTNAME'

    //Gets the MD5 Password from an account
    select password from [ACCOUNT_TBL] where account = 'ACCOUNTNAME'

    //Sets an account's password to what you want it as.
    update [ACCOUNT_TBL] set password = 'md5 pw' where account = 'ACCOUNTNAME'

    //Changes the account a character is on (you may need the next query if you use this query)
    update [CHARACTER_TBL] set account = 'ACCOUNTNAME' where m_szName = 'CHARACTERNAME'

    //Changes the slot that the player is in in the character selection
    update [CHARACTER_TBL] set playerslot = 'slot' where m_szName = 'CHARACTERNAME'

    Credits to me for putting the queries together. I will update it frequently. I'm currently working on a GM/Admin Panel for simplicity. Thank me if this helped? :D
    Last edited by Alexsh; 03-11-09 at 03:15 AM.


  2. #2
    Account Upgraded | Title Enabled! jemelm is offline
    MemberRank
    Apr 2005 Join Date
    PhilippinesLocation
    217Posts

    Re: MsSql querys

    thank you for sharing.

  3. #3
    Valued Member damian9000z is offline
    MemberRank
    Dec 2008 Join Date
    118Posts

    Re: MsSql querys

    Good for people who need a quicker way of modifying content rather then in MSSQL Studio Express (I find it to be the slowest program in the world idk it might just be me.)

  4. #4
    Enthusiast flyffxtra is offline
    MemberRank
    Feb 2009 Join Date
    34Posts

    Re: MsSql querys

    Quote Originally Posted by damian9000z View Post
    Good for people who need a quicker way of modifying content rather then in MSSQL Studio Express (I find it to be the slowest program in the world idk it might just be me.)
    I use MSSQL Studio Express but what i hate is that there's no search/find function o.o or not that i've found yet. So I find queries to be quite helpful.



Advertisement