Results 1 to 8 of 8

Thread: Maintenance

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2007
    Posts
    62

    Question Maintenance

    Hello Guys,

    I have a problem. I can't figure out how i most do something. I shall explain what is my problem

    First i gonna tel you about my program :

    I have a program that loads a splash screen. During the splashscreen the program do some validations :

    1. Check if the computer has connected to the network
    2. Check if the program has a configuration file(tekstfile)
    3. Checks the configuration file is it has a databaseserver, databasename , username and password
    4. Check is it can reach the databaseserver
    5. Check is the database exists
    6. Check if the username and password is correct

    If something is wrong the program gives a specific message. Now i wanne add something that checks if there is a maintenance , but i don't hava any idea how i can do this ? Does somebody have a idea?
    Last edited by domentarion; Feb 9th, 2009 at 01:55 PM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Maintenance

    By maintenance do you mean a new version of the software?

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2007
    Posts
    62

    Re: Maintenance

    I mean when i am working at my databaseserver then i want a specific message

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Maintenance

    Do you mean show a custom message when an error occurs?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Maintenance

    Quote Originally Posted by domentarion
    I mean when i am working at my databaseserver then i want a specific message
    You can create a table called "settings" and have a column "key" and "value".

    When it connects, have it check the settings for a row "maintenance", if the "value" is set to true, then have the program spit out the error.
    My usual boring signature: Something

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2007
    Posts
    62

    Re: Maintenance

    I mean that i have already error when the database is not reachable, but i want is something in the system when i working at my server or the server is down that the program knows when there is a maintenance at the server.

    The problem with that is that the database also need to be online.

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Maintenance

    Hm, from what I understand you need to create a program or function that detects whether the server is online and then records the information to a file.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Maintenance

    Theres pretty much no way I can think off that your program could distinguish between the database server being down for maintence and the database server crashing.

    The possible options would likly involve storing the Maintence Flag somwhere externally from the database server.

    Pino

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width