Click here to Skip to main content
16,005,552 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to wirte this query Pin
Ashfield11-Aug-08 3:09
Ashfield11-Aug-08 3:09 
GeneralRe: How to wirte this query Pin
varshavmane11-Aug-08 3:26
varshavmane11-Aug-08 3:26 
GeneralRe: How to wirte this query Pin
Ashfield11-Aug-08 4:39
Ashfield11-Aug-08 4:39 
GeneralRe: How to wirte this query Pin
Blue_Boy11-Aug-08 5:39
Blue_Boy11-Aug-08 5:39 
QuestionStored Procedure not Found but There(Strange) Pin
Vimalsoft(Pty) Ltd11-Aug-08 0:22
professionalVimalsoft(Pty) Ltd11-Aug-08 0:22 
AnswerRe: Stored Procedure not Found but There(Strange) Pin
Paddy Boyd11-Aug-08 2:10
Paddy Boyd11-Aug-08 2:10 
GeneralRe: Stored Procedure not Found but There(Strange) Pin
Vimalsoft(Pty) Ltd11-Aug-08 3:05
professionalVimalsoft(Pty) Ltd11-Aug-08 3:05 
QuestionApplication Hang when DB down Pin
krishnan.s10-Aug-08 20:07
krishnan.s10-Aug-08 20:07 
Hi,
Iam facing a problem with Postgres 8.1.4 Windows native version.

I am writing a simple application that executes an update query in a postgres database.

This query execution will be called in a loop for 500 times.

After starting the execution of the exe, I am switching off the Postgres server machine (say abrupt shutdown of the machine happened).

In this scenario, my sample application hangs.



Application code snippet would be like the below.



DBObj.Open (NULL, FALSE, FALSE, ConnectionString);

SQL = "Update mytable set sno=1 where sno=1";

for(int n=0; n <500; n++)

{

Try

{

WriteLog(“Start”);

DBObj.ExecuteSQL (strSql);

WriteLog(“End”);

}

Catch Exceptions…{}

}





Application hangs in the ExecuteSql statement itself.



This problem is not happening with Postgres 7.2.4 that runs on top of Cygwin.

And also this problem is not happening if I shutdown the server alone from Services

Instead of machine shutdown.



Any help is appreciated.

Thanks in advance.
AnswerRe: Application Hang when DB down Pin
Mycroft Holmes10-Aug-08 20:23
professionalMycroft Holmes10-Aug-08 20:23 
GeneralRe: Application Hang when DB down Pin
krishnan.s10-Aug-08 20:29
krishnan.s10-Aug-08 20:29 
GeneralRe: Application Hang when DB down Pin
Mycroft Holmes10-Aug-08 20:34
professionalMycroft Holmes10-Aug-08 20:34 
GeneralRe: Application Hang when DB down Pin
krishnan.s10-Aug-08 20:52
krishnan.s10-Aug-08 20:52 
JokeRe: Application Hang when DB down Pin
Mycroft Holmes10-Aug-08 21:02
professionalMycroft Holmes10-Aug-08 21:02 
AnswerRe: Application Hang when DB down Pin
SimulationofSai10-Aug-08 23:46
SimulationofSai10-Aug-08 23:46 
GeneralRe: Application Hang when DB down Pin
krishnan.s11-Aug-08 0:23
krishnan.s11-Aug-08 0:23 
QuestionFile format for data export/import Pin
petrveit10-Aug-08 8:56
petrveit10-Aug-08 8:56 
AnswerRe: File format for data export/import Pin
Mycroft Holmes10-Aug-08 16:36
professionalMycroft Holmes10-Aug-08 16:36 
GeneralRe: File format for data export/import Pin
petrveit10-Aug-08 19:11
petrveit10-Aug-08 19:11 
GeneralRe: File format for data export/import Pin
Mycroft Holmes10-Aug-08 20:20
professionalMycroft Holmes10-Aug-08 20:20 
QuestionDatabase Design Question - Table(s) for limiting user choices in a main table [modified] Pin
Elgin Rogers10-Aug-08 3:01
Elgin Rogers10-Aug-08 3:01 
AnswerRe: Database Design Question - Table(s) for limiting user choices in a main table [modified] Pin
Wendelius10-Aug-08 3:37
mentorWendelius10-Aug-08 3:37 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Elgin Rogers10-Aug-08 4:08
Elgin Rogers10-Aug-08 4:08 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Wendelius10-Aug-08 4:49
mentorWendelius10-Aug-08 4:49 
AnswerRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Elgin Rogers10-Aug-08 10:34
Elgin Rogers10-Aug-08 10:34 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Wendelius10-Aug-08 11:18
mentorWendelius10-Aug-08 11:18 

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.