Click here to Skip to main content
15,893,814 members
Home / Discussions / Database
   

Database

 
GeneralRe: password check-lowercase and uppercase Pin
andyharman15-Aug-07 7:31
professionalandyharman15-Aug-07 7:31 
Question???? Top And Desc Pin
AnhTin14-Aug-07 17:50
AnhTin14-Aug-07 17:50 
AnswerRe: ???? Top And Desc Pin
andyharman14-Aug-07 22:04
professionalandyharman14-Aug-07 22:04 
QuestionGROUP BY problem (MSSQL) Pin
Yaron Ben-Ami14-Aug-07 5:48
Yaron Ben-Ami14-Aug-07 5:48 
AnswerRe: GROUP BY problem (MSSQL) Pin
Colin Angus Mackay14-Aug-07 5:51
Colin Angus Mackay14-Aug-07 5:51 
AnswerRe: GROUP BY problem (MSSQL) Pin
Colin Angus Mackay15-Aug-07 13:18
Colin Angus Mackay15-Aug-07 13:18 
QuestionProblems connecting to old DBF with OleDB and .NET (C#) Pin
MSgt~Nesher14-Aug-07 3:56
MSgt~Nesher14-Aug-07 3:56 
AnswerRe: Problems connecting to old DBF with OleDB and .NET (C#) Pin
Michael Potter14-Aug-07 9:23
Michael Potter14-Aug-07 9:23 
I will take a shot at this:

Start Quote: DbConnection.Close Method Documentation

The Close method rolls back any pending transactions. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled.

An application can call Close more than one time. No exception is generated.

If the DbConnection goes out of scope, it is not closed. Therefore, you must explicitly close the connection by calling Close or Dispose, which are functionally equivalent. If the connection pooling value Pooling is set to true or yes, this also releases the physical connection.


End Quote

Close() and Dispose() are functionally equivalent. This means that you are lucky that your application functions at all. Most likely you have lots of memory and it takes time for the garbage collector to catch up and completely deallocate your connection object. The driver is eventually getting a pointer to a jumble of crap. To fix this, you need to reallocate (conn = new OdbcConnection();) just before you assign the connection string in the second try block.
GeneralRe: Problems connecting to old DBF with OleDB and .NET (C#) Pin
MSgt~Nesher14-Aug-07 20:52
MSgt~Nesher14-Aug-07 20:52 
GeneralRe: Problems connecting to old DBF with OleDB and .NET (C#) Pin
MSgt~Nesher14-Aug-07 22:19
MSgt~Nesher14-Aug-07 22:19 
QuestionHow to Get Primary Key From the Table Return From Database Pin
N a r e s h P a t e l14-Aug-07 3:44
N a r e s h P a t e l14-Aug-07 3:44 
AnswerRe: How to Get Primary Key From the Table Return From Database Pin
Blue_Boy14-Aug-07 4:45
Blue_Boy14-Aug-07 4:45 
QuestionConnecting to SQL 2005 Express remotely Pin
GermanDM14-Aug-07 3:20
GermanDM14-Aug-07 3:20 
Questionfatch specified no Pin
MHASSANF14-Aug-07 3:09
MHASSANF14-Aug-07 3:09 
AnswerRe: fatch specified no Pin
Krish - KP14-Aug-07 3:17
Krish - KP14-Aug-07 3:17 
QuestionRe: fatch specified no Pin
MHASSANF14-Aug-07 3:26
MHASSANF14-Aug-07 3:26 
AnswerRe: fatch specified no Pin
N a v a n e e t h14-Aug-07 3:30
N a v a n e e t h14-Aug-07 3:30 
AnswerRe: fatch specified no Pin
Krish - KP14-Aug-07 3:55
Krish - KP14-Aug-07 3:55 
QuestionSQL Query reverse LIKE [modified] Pin
Ronni Marker14-Aug-07 0:11
Ronni Marker14-Aug-07 0:11 
AnswerRe: SQL Query reverse LIKE Pin
Rami Said Abd Alhalim14-Aug-07 0:24
Rami Said Abd Alhalim14-Aug-07 0:24 
GeneralRe: SQL Query reverse LIKE Pin
Ronni Marker14-Aug-07 0:28
Ronni Marker14-Aug-07 0:28 
GeneralRe: SQL Query reverse LIKE Pin
Rami Said Abd Alhalim14-Aug-07 0:32
Rami Said Abd Alhalim14-Aug-07 0:32 
GeneralRe: SQL Query reverse LIKE Pin
Ronni Marker14-Aug-07 0:47
Ronni Marker14-Aug-07 0:47 
GeneralRe: SQL Query reverse LIKE Pin
Rami Said Abd Alhalim14-Aug-07 2:28
Rami Said Abd Alhalim14-Aug-07 2:28 
AnswerRe: SQL Query reverse LIKE Pin
andyharman14-Aug-07 1:04
professionalandyharman14-Aug-07 1:04 

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.