c# - Data base connection create new or reuse? -


i have windows service application polls table data every 5 sec, know should create single connection , reuse everytime or go creating new connection everytime after 5 sec read database.

reuse work best. make use of in-built connection pooling feature.

http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -