Click here to Skip to main content
15,913,669 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL2000 SP4 Disaster! Pin
Colin Angus Mackay8-Jun-06 4:37
Colin Angus Mackay8-Jun-06 4:37 
GeneralRe: SQL2000 SP4 Disaster! Pin
MatthysDT8-Jun-06 5:09
MatthysDT8-Jun-06 5:09 
QuestionSQL Connection Pin
nitin_ion8-Jun-06 1:42
nitin_ion8-Jun-06 1:42 
AnswerRe: SQL Connection Pin
Paul Brower8-Jun-06 1:48
Paul Brower8-Jun-06 1:48 
GeneralRe: SQL Connection Pin
nitin_ion8-Jun-06 1:52
nitin_ion8-Jun-06 1:52 
AnswerRe: SQL Connection Pin
SeMartens8-Jun-06 1:50
SeMartens8-Jun-06 1:50 
AnswerRe: SQL Connection Pin
Colin Angus Mackay8-Jun-06 4:33
Colin Angus Mackay8-Jun-06 4:33 
AnswerRe: SQL Connection [modified] Pin
Rob Graham8-Jun-06 5:03
Rob Graham8-Jun-06 5:03 
I believe you need to Dispose() and set null in the finally block to insure it is returned to the pool. Close() is not enough.
As Colin pointed out, best practices recommend createing the connection as late as possible, and destroying it as soon as possible. You only need to keep it around across multiple operations if you are executing a multi-step transaction.
Last modified: Thursday, June 08, 2006 10:01:36 AM --

GeneralRe: SQL Connection [modified] Pin
nitin_ion8-Jun-06 17:36
nitin_ion8-Jun-06 17:36 
GeneralRe: SQL Connection Pin
Rob Graham9-Jun-06 5:23
Rob Graham9-Jun-06 5:23 
GeneralRe: SQL Connection Pin
nitin_ion9-Jun-06 17:53
nitin_ion9-Jun-06 17:53 
Questionoptimize this query Pin
smita_roy8-Jun-06 0:18
smita_roy8-Jun-06 0:18 
AnswerRe: optimize this query Pin
albCode8-Jun-06 0:50
albCode8-Jun-06 0:50 
GeneralRe: optimize this query Pin
smita_roy8-Jun-06 0:51
smita_roy8-Jun-06 0:51 
GeneralRe: optimize this query Pin
Colin Angus Mackay8-Jun-06 1:02
Colin Angus Mackay8-Jun-06 1:02 
GeneralRe: optimize this query Pin
smita_roy8-Jun-06 1:25
smita_roy8-Jun-06 1:25 
AnswerRe: optimize this query Pin
Chris Meech8-Jun-06 3:43
Chris Meech8-Jun-06 3:43 
AnswerRe: optimize this query Pin
Stephan Samuel8-Jun-06 11:09
Stephan Samuel8-Jun-06 11:09 
QuestionCreate sql server users and groups using SQL statement Pin
miceisland7-Jun-06 19:56
miceisland7-Jun-06 19:56 
AnswerRe: Create sql server users and groups using SQL statement Pin
Colin Angus Mackay7-Jun-06 22:20
Colin Angus Mackay7-Jun-06 22:20 
GeneralRe: Create sql server users and groups using SQL statement Pin
miceisland7-Jun-06 22:26
miceisland7-Jun-06 22:26 
AnswerRe: Create sql server users and groups using SQL statement Pin
Eric Dahlvang8-Jun-06 3:10
Eric Dahlvang8-Jun-06 3:10 
QuestionWrite to database problem Pin
my_btr7-Jun-06 18:59
my_btr7-Jun-06 18:59 
AnswerRe: Write to database problem Pin
S Douglas25-Jul-06 23:00
professionalS Douglas25-Jul-06 23:00 
QuestionDataReader Pin
md_refay7-Jun-06 9:24
md_refay7-Jun-06 9:24 

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.