Click here to Skip to main content
15,892,059 members
Home / Discussions / Database
   

Database

 
GeneralRe: MSDE Connection String Pin
Mike Dimmick20-Feb-04 0:15
Mike Dimmick20-Feb-04 0:15 
GeneralProblem in Joining Two Tables Pin
Touseef Afzal19-Feb-04 10:23
Touseef Afzal19-Feb-04 10:23 
GeneralRe: Problem in Joining Two Tables Pin
Edbert P19-Feb-04 12:43
Edbert P19-Feb-04 12:43 
GeneralRe: Problem in Joining Two Tables Pin
Touseef Afzal20-Feb-04 10:31
Touseef Afzal20-Feb-04 10:31 
GeneralRe: Problem in Joining Two Tables Pin
Edbert P22-Feb-04 17:41
Edbert P22-Feb-04 17:41 
GeneralTimeouts in C# Pin
19-Feb-04 5:49
suss19-Feb-04 5:49 
GeneralRe: Timeouts in C# Pin
Tom Larsen19-Feb-04 10:44
Tom Larsen19-Feb-04 10:44 
GeneralRe: Timeouts in C# Pin
Kwai Cheng Kane19-Feb-04 12:45
Kwai Cheng Kane19-Feb-04 12:45 
Thanks. I finally found the solution. It turns out that it was something simple, but I wouldn't have known it without digging through the endless dbConnect values in the debugger. In essence, I was doing the following:

dbCommand = new OdbcCommand(Query, dbConnect);
dbCommand.CommandTimeout = 300;
dbAdapter = new OdbcDataAdapter();
dbData = new DataSet();
dbAdapter.SelectCommand = dbCommand;
dbAdapter.Fill(dbData,"Play");

What I found, after going through the 'dbCommand' parameters in debug, is that the

'dbAdapter.SelectCommand = dbCommand'

RESETS THE TIMEOUT VALUE BACK TO THE DEFAULT!!! This is why it would ignore any timeout values I set. AAAARRRRGGGGHHHH!!!! So, you MUST set the timeout AFTER calling that line, preferrably just before the "Fill()" call. When I did this...

dbCommand = new OdbcCommand(Query, dbConnect);
dbAdapter = new OdbcDataAdapter();
dbData = new DataSet();
dbAdapter.SelectCommand = dbCommand;
dbCommand.CommandTimeout = 300;
dbAdapter.Fill(dbData,"Play");

it worked fine. No timeout whatsoever. GEEEEZZZZEEE!! It even worked great setting a timeout of 90, but 60 timed out. Microsoft should not reset values like this. Putting initial values should be left up to constructors and explicitly called initializers ONLY!!!

I have noticed other people on this board complaining of the same problem. They were probably doing the very same thing as I was.

Questionneed sql query? Pin
murali_utr18-Feb-04 18:36
murali_utr18-Feb-04 18:36 
AnswerRe: need sql query? Pin
stefan b18-Feb-04 18:54
stefan b18-Feb-04 18:54 
GeneralRe: need sql query? Pin
murali_utr18-Feb-04 19:01
murali_utr18-Feb-04 19:01 
GeneralSimple Dataset Question... Pin
Verdant12318-Feb-04 16:45
Verdant12318-Feb-04 16:45 
GeneralRe: Simple Dataset Question... Pin
Gerald Leslie Jones19-Feb-04 18:59
Gerald Leslie Jones19-Feb-04 18:59 
GeneralRe: Simple Dataset Question... Pin
Verdant12319-Feb-04 19:06
Verdant12319-Feb-04 19:06 
GeneralRe: Simple Dataset Question... Pin
Bill Dean20-Feb-04 5:07
Bill Dean20-Feb-04 5:07 
GeneralRe: Simple Dataset Question... Pin
Verdant12322-Feb-04 3:01
Verdant12322-Feb-04 3:01 
GeneralParameters of PutElement() Pin
girl_lash18-Feb-04 16:26
girl_lash18-Feb-04 16:26 
Generalassociating child to parent Pin
ylaine18-Feb-04 16:05
ylaine18-Feb-04 16:05 
GeneralMissing VNSAPI32.dll Pin
Bakos, Zsolt18-Feb-04 9:50
Bakos, Zsolt18-Feb-04 9:50 
GeneralRe: Missing VNSAPI32.dll Pin
Mike Dimmick19-Feb-04 6:12
Mike Dimmick19-Feb-04 6:12 
GeneralTrouble with query Pin
gamerPotatoe18-Feb-04 1:38
gamerPotatoe18-Feb-04 1:38 
GeneralRe: Trouble with query Pin
Mike Dimmick18-Feb-04 2:36
Mike Dimmick18-Feb-04 2:36 
GeneralRe: Trouble with query Pin
Edbert P19-Feb-04 13:28
Edbert P19-Feb-04 13:28 
GeneralHelp with big stored procedure Pin
Verdant12317-Feb-04 20:25
Verdant12317-Feb-04 20:25 
GeneralRe: Help with big stored procedure Pin
Not Active18-Feb-04 1:06
mentorNot Active18-Feb-04 1:06 

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.