OdbcCommand command = new OdbcCommand("SELECT * FROM [SlideShowTable1] where (startddate <= ?) AND (endddate >=?) ORDER BY rnd (INT(NOW*ImageID)-NOW*ImageID)", con); command.Parameters.AddWithValue("sdate", System.DateTime.Now.ToString("M/d/yyyy")); command.Parameters.AddWithValue("edate", System.DateTime.Now.ToString("M/d/yyyy"));
SqlCommand command = new SqlCommand("SELECT * FROM [SlideShowTable1] where (startddate <= @sdate) AND (endddate >=@edate)ORDER BY rnd (INT(NOW*ImageID)-NOW*ImageID) ", con); command.Parameters.AddWithValue("@sdate", System.DateTime.Now.ToString("M/d/yyyy")); command.Parameters.AddWithValue("@edate", System.DateTime.Now.ToString("M/d/yyyy"));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)