E
Emmanuel Touzery
Hello,
I have a binary column in a .NET (C#) in-memory DataTable, and I wish
to make a selection based (among others) on this column. It's easy to
do such a thing on eg MS-SQL, but I want to do it in .NET's in-memory
data. I tried to format the byte array in many ways (including the
0x0001 format of MS-SQL, but also 000-0001, {000-001}, [000-001], with
or without quotes, but no way worked.
Any idea how to do that? Please don't question why I would want to do
that ;O)
If I wasn't clear:
DataRow[] matches = dsMyDataSet.Select("Column1 = " + value + " and
Column2 = " + value2);
where value2 is in fact a byte[], and Column2 contains a base64binary
in my in-memory table.
Thank you,
emmanuel
I have a binary column in a .NET (C#) in-memory DataTable, and I wish
to make a selection based (among others) on this column. It's easy to
do such a thing on eg MS-SQL, but I want to do it in .NET's in-memory
data. I tried to format the byte array in many ways (including the
0x0001 format of MS-SQL, but also 000-0001, {000-001}, [000-001], with
or without quotes, but no way worked.
Any idea how to do that? Please don't question why I would want to do
that ;O)
If I wasn't clear:
DataRow[] matches = dsMyDataSet.Select("Column1 = " + value + " and
Column2 = " + value2);
where value2 is in fact a byte[], and Column2 contains a base64binary
in my in-memory table.
Thank you,
emmanuel