Click here to Skip to main content
15,907,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calculating execution time less than 1 tick Pin
Dave Kreskowiak22-Oct-06 2:25
mveDave Kreskowiak22-Oct-06 2:25 
QuestionSimple Byte.Parse question Pin
eggie521-Oct-06 16:09
eggie521-Oct-06 16:09 
AnswerRe: Simple Byte.Parse question Pin
Sean Michael Murphy21-Oct-06 16:25
Sean Michael Murphy21-Oct-06 16:25 
GeneralRe: Simple Byte.Parse question Pin
Vega0221-Oct-06 17:20
Vega0221-Oct-06 17:20 
QuestionHow to detect CPU usage or computer idle time... Pin
shultas21-Oct-06 16:05
shultas21-Oct-06 16:05 
QuestionThe old ADO double play Pin
davecove21-Oct-06 15:27
davecove21-Oct-06 15:27 
QuestionWhich Db connection is better? Pin
Mark0621-Oct-06 13:08
Mark0621-Oct-06 13:08 
AnswerRe: Which Db connection is better? Pin
Rob Graham21-Oct-06 16:17
Rob Graham21-Oct-06 16:17 
Microsoft recommends the latter. The SqlClient provider maintains a pool of connection objects (adjustable via the connection string) for each process (the pool is actually keyed by the texet in the connection string, so you should take care to always use exactly the same string content). The ool largely eliminatesw the overhead of creating connection objects (the new... actually justs pulls an exixting idle connection from the pool) so what is left is onloy the overhead of opening the connection which is fairly small. The recommendation is to open the connection as late as possible, and close it as soon as you are done with the operation at hand. Keeping the connection open for the duration runs the risk that your process could terminate unexpectedly and leave a dead connection behind. This will not be reclaimed until the server is restarted. It also ties up a limited resource unnecessarily.



AnswerRe: Which Db connection is better? Pin
Rob Graham21-Oct-06 16:21
Rob Graham21-Oct-06 16:21 
QuestionGetProcesses Error Pin
Inkyskin_UK21-Oct-06 12:50
Inkyskin_UK21-Oct-06 12:50 
AnswerRe: GetProcesses Error Pin
S. Senthil Kumar23-Oct-06 8:50
S. Senthil Kumar23-Oct-06 8:50 
QuestionReading VB6 PropertyBag using C#? Pin
marcel.toledo21-Oct-06 12:41
marcel.toledo21-Oct-06 12:41 
AnswerRe: Reading VB6 PropertyBag using C#? Pin
LongRange.Shooter23-Oct-06 4:30
LongRange.Shooter23-Oct-06 4:30 
QuestionMouse button click... Pin
new_phoenix21-Oct-06 11:19
new_phoenix21-Oct-06 11:19 
QuestionWhat's the meaning of the following code? Pin
Ming Luo21-Oct-06 10:46
Ming Luo21-Oct-06 10:46 
AnswerRe: What's the meaning of the following code? Pin
Tamimi - Code21-Oct-06 19:59
Tamimi - Code21-Oct-06 19:59 
QuestionHow to detect Attempt to connect? Pin
FlyOnIT21-Oct-06 9:52
FlyOnIT21-Oct-06 9:52 
AnswerRe: How to detect Attempt to connect? Pin
LongRange.Shooter23-Oct-06 4:32
LongRange.Shooter23-Oct-06 4:32 
QuestionNeed To license source or component. Pin
hdv21221-Oct-06 8:44
hdv21221-Oct-06 8:44 
QuestionHow to identify whether or not a control object has been instantiated... [modified] Pin
new_phoenix21-Oct-06 7:46
new_phoenix21-Oct-06 7:46 
AnswerRe: How to identify whether or not a control object has been instantiated... Pin
Guffa21-Oct-06 8:59
Guffa21-Oct-06 8:59 
GeneralRe: How to identify whether or not a control object has been instantiated... [modified] Pin
new_phoenix21-Oct-06 9:28
new_phoenix21-Oct-06 9:28 
GeneralRe: How to identify whether or not a control object has been instantiated... Pin
Guffa21-Oct-06 11:56
Guffa21-Oct-06 11:56 
QuestionForm Updating within Loops Pin
Jethro6321-Oct-06 6:06
Jethro6321-Oct-06 6:06 
AnswerRe: Form Updating within Loops Pin
User 665821-Oct-06 6:41
User 665821-Oct-06 6:41 

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.