I have this fragment of cogigo
public List<byte[]> selectAlarmas1(int numero)
{
try
{
cn = new SqlConnection("Data Source = PRUEBA; Initial Catalog = FUCS; Persist Security Info = True; User ID = admin; Password = 1234");
cn.Open();
Console.Write("conectado bien");
}
catch (Exception e)
{
Console.Write("no se conecto" + e);
}
byte[] Datos = null;
List<byte[]> numeros = new List<byte[]>();
try
{
if (numero == 1)
{
String cama = TextBox1.Text;
String Hora = HoraGrafica1.Text;
cmd = new SqlCommand("Select ECG1 From dbo.Alarm where PatientiID=" + cama+ "AND OccurTime='"+Hora+"';", cn);
dr = cmd.ExecuteReader();
}
I in the variable that says Hora
I assign something this way "2009/10/10 09:23" and I need you to bring me all the data from the database that are between 09:23: 00 until 09:23:59 but with this sentence it only takes one I would like to know how I should do the sentence to bring them all
Thanks