Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7544369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:39:20+00:00 2026-05-30T08:39:20+00:00

In static constructor I check if I can open connection with all databases and

  • 0

In static constructor I check if I can open connection with all databases and then keep a static copy of ConnectionStrings and afterwards when needed use it.

Now if I create

private static List < OleDbConnection > _connections;

and store all the open connections as open connections?
Can I use these connections till the application is on. Is there any harm in doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:39:21+00:00Added an answer on May 30, 2026 at 8:39 am

    This is already done for you by the system using connection pools.

    http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbconnection.aspx

    To deploy high-performance applications, you must use connection
    pooling. When you use the .NET Framework Data Provider for OLE DB, you
    do not have to enable connection pooling because the provider manages
    this automatically.
    For more information about how to use connection
    pooling with the .NET Framework Data Provider for OLE DB, see OLE DB,
    ODBC, and Oracle Connection Pooling (ADO.NET) (https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/ole-db-odbc-and-oracle-connection-pooling).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get the ConstructorInfo for a static constructor? public class MyClass {
Why can't enum's constructor access static fields and methods? This is perfectly valid with
I have a static class with no static constructor, but many static members. I
i want ask some question about asp.net mvc Is static constructor will init every
What is the real difference between a C# static constructor and a Java static
I am bit confused in the usage of Static class, Private constructor and abstract
First of all, I read erickson's useful reply to Why can’t I define a
In C# I can check if an event has any listeners: C# Example: public
I've initialized a GridBagLayout globally, then in my class constructor have instantiated it and
I'm having trouble adding a copy constructor to this class: http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.