title: Function to return SQL query into a vector<double> in C++
body: <p>I have a query in T-SQL which returns 300 records. Each record has 2 columns (date, int)</p>
  
  <p>What is the easiest way in C++ to put all the dates in one vector and all the integers in another one?</p>
  
  <p>I would like to do it in a function.</p>