R
Roy
I have a SqlDataReader dr returned from a SqlCommand. dr contains only one
column of 2000 varbinary(max) records (contains 24 bytes in my testing
case). The following code takes 1 second to
run. I would like to improve the performance. Any suggestions
while (dr.Read())
{
list.Add(dr[0] as byte[]);
}
where list is of List<byte[]>.
column of 2000 varbinary(max) records (contains 24 bytes in my testing
case). The following code takes 1 second to
run. I would like to improve the performance. Any suggestions
while (dr.Read())
{
list.Add(dr[0] as byte[]);
}
where list is of List<byte[]>.