Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Postgres database connection Pin
Dave Kreskowiak1-Mar-11 9:46
mveDave Kreskowiak1-Mar-11 9:46 
AnswerRe: Postgres database connection Pin
Dave Kreskowiak1-Mar-11 9:45
mveDave Kreskowiak1-Mar-11 9:45 
GeneralRe: Postgres database connection Pin
Software20071-Mar-11 9:56
Software20071-Mar-11 9:56 
AnswerRe: Postgres database connection Pin
Pete O'Hanlon1-Mar-11 9:56
mvePete O'Hanlon1-Mar-11 9:56 
GeneralRe: Postgres database connection Pin
Software20071-Mar-11 10:26
Software20071-Mar-11 10:26 
GeneralRe: Postgres database connection Pin
Pete O'Hanlon1-Mar-11 10:34
mvePete O'Hanlon1-Mar-11 10:34 
GeneralRe: Postgres database connection Pin
Software20071-Mar-11 10:40
Software20071-Mar-11 10:40 
AnswerRe: Postgres database connection Pin
PIEBALDconsult1-Mar-11 13:55
mvePIEBALDconsult1-Mar-11 13:55 
To clarify more (I hope); you can hold the Connection instance for the duration of your application, but only open it when you need it then close it. That's what I do, even with Windows Services that run 7x24 forever. And also use connection pooling.

It's really very easy, if you think it's difficult then you must be doing it wrong. You can check out this fine article[^], or use a DataAdapter (which I don't recommend).
QuestionFile.Move() method Pin
Orcun Iyigun1-Mar-11 9:30
Orcun Iyigun1-Mar-11 9:30 
AnswerRe: File.Move() method Pin
Dave Kreskowiak1-Mar-11 9:39
mveDave Kreskowiak1-Mar-11 9:39 
GeneralRe: File.Move() method Pin
Orcun Iyigun1-Mar-11 10:05
Orcun Iyigun1-Mar-11 10:05 
QuestionAccess asymbly version Pin
jashimu1-Mar-11 3:02
jashimu1-Mar-11 3:02 
AnswerRe: Access asymbly version Pin
musefan1-Mar-11 3:15
musefan1-Mar-11 3:15 
GeneralRe: Access asymbly version Pin
jashimu1-Mar-11 3:22
jashimu1-Mar-11 3:22 
AnswerRe: Access asymbly version Pin
musefan1-Mar-11 3:26
musefan1-Mar-11 3:26 
AnswerRe: Access asymbly version Pin
Henry Minute1-Mar-11 3:16
Henry Minute1-Mar-11 3:16 
GeneralRe: Access asymbly version Pin
musefan1-Mar-11 3:22
musefan1-Mar-11 3:22 
GeneralRe: Access asymbly version Pin
Henry Minute1-Mar-11 3:24
Henry Minute1-Mar-11 3:24 
GeneralRe: Access asymbly version Pin
musefan1-Mar-11 3:29
musefan1-Mar-11 3:29 
AnswerRe: Access asymbly version Pin
Richard MacCutchan1-Mar-11 3:21
mveRichard MacCutchan1-Mar-11 3:21 
QuestionCreating xml file using SAX parser Pin
NarVish1-Mar-11 2:18
NarVish1-Mar-11 2:18 
AnswerRe: Creating xml file using SAX parser Pin
Keith Barrow1-Mar-11 2:32
professionalKeith Barrow1-Mar-11 2:32 
QuestionCreate Update for Install Package Pin
Enobong Adahada1-Mar-11 0:34
Enobong Adahada1-Mar-11 0:34 
Questioncd/dvd read write access type properties Pin
Aisha sharma28-Feb-11 23:53
Aisha sharma28-Feb-11 23:53 
QuestionRe: cd/dvd read write access type properties Pin
musefan1-Mar-11 0:13
musefan1-Mar-11 0:13 

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.