YAFLogo

DJGray
  • DJGray
  • 88.8% (Honored)
  • YAF Commander Topic Starter
14 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);


Sponsor

YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button