Click here to Skip to main content
16,020,877 members
Home / Discussions / Database
   

Database

 
AnswerRe: Updating live/running Stored Procedures / Functions Pin
Mycroft Holmes18-Nov-09 13:19
professionalMycroft Holmes18-Nov-09 13:19 
QuestionConvert selected table into Tally . Pin
lrsalunkhe17-Nov-09 17:59
lrsalunkhe17-Nov-09 17:59 
AnswerRe: Convert selected table into Tally . Pin
Mycroft Holmes17-Nov-09 20:21
professionalMycroft Holmes17-Nov-09 20:21 
GeneralRe: Convert selected table into Tally . Pin
Shameel18-Nov-09 1:55
professionalShameel18-Nov-09 1:55 
AnswerRe: Convert selected table into Tally . Pin
Niladri_Biswas17-Nov-09 23:11
Niladri_Biswas17-Nov-09 23:11 
QuestionHelp!!! Pin
James WG Murphy17-Nov-09 15:53
James WG Murphy17-Nov-09 15:53 
AnswerRe: Help!!! Pin
_Damian S_17-Nov-09 17:00
professional_Damian S_17-Nov-09 17:00 
AnswerFailover logic Pin
David Mujica18-Nov-09 3:29
David Mujica18-Nov-09 3:29 
I'm not a Java guy, but I believe the basic approach is something like this:

1) In all of your data access methods, you will need to open 2 connections to the databases; primary and secondary.
2) During your inserts/updates/deletes you will need to make it in both databases.
3) After attempting to make your connection to your primary database, if it fails, you should set some global flag indicating to all of your other database methods should reference the secondary database.

If you really want to be fancy, you could implement a round-robin access method for your primary and secondary databases to provide a load balance between them. Extra brownie points !

Good luck.
QuestionHelp with a trigger or something like that... Pin
Aptiva Dave17-Nov-09 7:39
Aptiva Dave17-Nov-09 7:39 
AnswerSQL Jobs Pin
David Mujica17-Nov-09 7:51
David Mujica17-Nov-09 7:51 
GeneralRe: SQL Jobs Pin
Aptiva Dave17-Nov-09 8:21
Aptiva Dave17-Nov-09 8:21 
GeneralRe: SQL Jobs Pin
_Damian S_17-Nov-09 14:06
professional_Damian S_17-Nov-09 14:06 
AnswerRe: Help with a trigger or something like that... Pin
Tripathi Swati17-Nov-09 18:51
Tripathi Swati17-Nov-09 18:51 
GeneralRe: Help with a trigger or something like that... Pin
Ashfield17-Nov-09 21:05
Ashfield17-Nov-09 21:05 
GeneralRe: Help with a trigger or something like that... Pin
Tripathi Swati18-Nov-09 2:08
Tripathi Swati18-Nov-09 2:08 
GeneralRe: Help with a trigger or something like that... Pin
Ashfield18-Nov-09 8:28
Ashfield18-Nov-09 8:28 
QuestionRe: Help with a trigger or something like that... Pin
Aptiva Dave18-Nov-09 9:14
Aptiva Dave18-Nov-09 9:14 
Questionquery to find engineering student Pin
srinandan..17-Nov-09 0:07
srinandan..17-Nov-09 0:07 
AnswerRe: query to find engineering student Pin
Niladri_Biswas17-Nov-09 1:24
Niladri_Biswas17-Nov-09 1:24 
GeneralRe: query to find engineering student Pin
srinandan..17-Nov-09 3:29
srinandan..17-Nov-09 3:29 
QuestionSQL - Server 2008 - Doubling Problem Pin
Paramu197316-Nov-09 23:17
Paramu197316-Nov-09 23:17 
AnswerRe: SQL - Server 2008 - Doubling Problem Pin
Niladri_Biswas17-Nov-09 1:34
Niladri_Biswas17-Nov-09 1:34 
Question[Message Deleted] Pin
Niladri_Biswas16-Nov-09 20:19
Niladri_Biswas16-Nov-09 20:19 
AnswerRe: Replace multiple words in a text + sql server(SET BASED) Pin
Mycroft Holmes16-Nov-09 22:07
professionalMycroft Holmes16-Nov-09 22:07 
GeneralRe: Replace multiple words in a text + sql server(SET BASED) Pin
Niladri_Biswas16-Nov-09 22:59
Niladri_Biswas16-Nov-09 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.