|
-
Feb 9th, 2009, 01:46 PM
#1
Thread Starter
Member
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.
-
Feb 9th, 2009, 02:17 PM
#2
Re: Maintenance
By maintenance do you mean a new version of the software?
-
Feb 9th, 2009, 02:28 PM
#3
Thread Starter
Member
Re: Maintenance
I mean when i am working at my databaseserver then i want a specific message
-
Feb 9th, 2009, 08:22 PM
#4
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
-
Feb 10th, 2009, 01:15 AM
#5
Re: Maintenance
 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
-
Feb 10th, 2009, 04:13 AM
#6
Thread Starter
Member
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.
-
Feb 10th, 2009, 06:15 AM
#7
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
-
Feb 10th, 2009, 07:06 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|