Click here to Skip to main content
15,905,782 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 10:34
led mike13-Feb-08 10:34 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 10:45
nathan2240513-Feb-08 10:45 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 11:07
led mike13-Feb-08 11:07 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 11:52
nathan2240513-Feb-08 11:52 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 11:59
led mike13-Feb-08 11:59 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 12:38
nathan2240513-Feb-08 12:38 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 13:15
led mike13-Feb-08 13:15 
GeneralRe: "Program Not Responding" Pin
Dave Kreskowiak15-Feb-08 6:18
mveDave Kreskowiak15-Feb-08 6:18 
That's a HUGE bad practice. In an SQL Servce environment, you've just grabbed a very expensive connection license and are holding it indefinitely. That connection won't be doing anything for about 95% of the lifetime of your app. Does that sound like a good use for a license that costs $$$??

You also didn't solve the problem. You merely got around it by opening the connection once, which will probably have that delay.

What does the connection string look like?? How are you opening the connection when you want to make a query?? How are you USING the connection?? Is it being closed properly when you're done with it??



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: "Program Not Responding" Pin
nathan2240515-Feb-08 7:22
nathan2240515-Feb-08 7:22 
GeneralRe: "Program Not Responding" Pin
Dave Kreskowiak15-Feb-08 9:26
mveDave Kreskowiak15-Feb-08 9:26 
GeneralRe: "Program Not Responding" Pin
nathan2240515-Feb-08 9:53
nathan2240515-Feb-08 9:53 
GeneralGraphics using C# Pin
RanaSohail12-Feb-08 14:00
RanaSohail12-Feb-08 14:00 
GeneralRe: Graphics using C# Pin
Christian Graus12-Feb-08 14:15
protectorChristian Graus12-Feb-08 14:15 
GeneralRe: Graphics using C# Pin
Patrick Etc.17-Feb-08 5:44
Patrick Etc.17-Feb-08 5:44 
Generalimport excel data from excel sheet to ms access database table Pin
Naresh12345678912-Feb-08 0:44
Naresh12345678912-Feb-08 0:44 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield12-Feb-08 2:42
Ashfield12-Feb-08 2:42 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Naresh12345678914-Feb-08 23:36
Naresh12345678914-Feb-08 23:36 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield15-Feb-08 9:06
Ashfield15-Feb-08 9:06 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Naresh1234567896-Mar-08 1:30
Naresh1234567896-Mar-08 1:30 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield6-Mar-08 9:33
Ashfield6-Mar-08 9:33 
GeneralSuggestions on Command Invoking Controls Pin
Brady Kelly11-Feb-08 22:51
Brady Kelly11-Feb-08 22:51 
QuestionScheduler or Timer - Windows Forms Project Pin
Blumen11-Feb-08 20:16
Blumen11-Feb-08 20:16 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Ashfield11-Feb-08 22:50
Ashfield11-Feb-08 22:50 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Blumen11-Feb-08 23:43
Blumen11-Feb-08 23:43 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Ashfield12-Feb-08 2:37
Ashfield12-Feb-08 2:37 

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.