• DJGray
  • 88.8% (Honored)
  • YAF Commander Topic Starter
13 years ago
Greetings all!

I have an app that needs to pull a value from a DB for the last 20 days at or later than 1:00 PM. I"m not real sure how to pull this off. Here's what I'm looking at so far. iCount = 20 in this case, and i is my increment counter.

Any help would be greatly appreciated.

for (i = 1; i <= iCount; iCount++)


SqlCommand myCmd = new SqlCommand("Select Price from History where Symbol = '" + strSymbol + "' and TimeStamp > ??what goes here?? ", conn);