I am having trouble querying out a guid field which is binary in the database. Any tips or prior experiences to share?
I am trying to do a SELECT field1, field2, field3, guidField From table; sort of thing, and populate a datagridview control with the results. I want to:
1. Query the rows and present them in the datagridview, presenting that guid field as perhaps a hex string
2. Select a row in the datagridview control
3. Convert the text string (probably a hex num) back into binary so I can perform more queries and use field in a WHERE clause
The datagridview control doesn't know how to handle a binary field (lots of exceptions). I tried variations of "SELECT field1, field2, field3, CONVERT(binary, guidField, varchar) from table;" to no avail, but I think that is a step taking me a lil closer to the solution. Any tips / referrals / ideas appreciated.
I am trying to do a SELECT field1, field2, field3, guidField From table; sort of thing, and populate a datagridview control with the results. I want to:
1. Query the rows and present them in the datagridview, presenting that guid field as perhaps a hex string
2. Select a row in the datagridview control
3. Convert the text string (probably a hex num) back into binary so I can perform more queries and use field in a WHERE clause
The datagridview control doesn't know how to handle a binary field (lots of exceptions). I tried variations of "SELECT field1, field2, field3, CONVERT(binary, guidField, varchar) from table;" to no avail, but I think that is a step taking me a lil closer to the solution. Any tips / referrals / ideas appreciated.