title: Design decision: (VB.NET) Should I create a class or module to easily connect to one of many databases?
body: <p>Basically, we have three databases to grab data from. One is a SQL Server database, one is an Access database (which is particularly annoying to connect to because we have to map a network drive and such), and the final one will be an Oracle database when IT finally gives us rights.</p>
  
  <p>I'm thinking about creating a helper function that makes querying any one of these databases as easy as possible. Ideally, I want to create a two-dimensional array</p>
  
  <pre><code>Dim myEasyResultArray(10,10) as String
  myEasyResultArray = DatabaseHelper("Access", "SELECT * FROM Employee")
  </code></pre>
  
  <p>Is this a good design decision? Also, how can I have the array be the right size? Can I just do this?</p>
  
  <p><code>Dim myEasyResultArray = DatabaseHelper("Access", "SELECT * FROM Employee")</code> </p>
  
  <p>Should this be a module or a class? I don't really need to share variables, </p>