Page 1 of 1

CLR-UDT Support

Posted: Mon 05 May 2008 08:52
by crafty
Hello,

Is it possible to have a field which is a User Defined Type (Assembly) get detected as a string with read and write operations?
So far I see that it gets detected as TMSUDTField but I can't write to it using string values or read the string output.
On the other hand if I query FieldName.ToString() then I can read the string output but it is readonly. This would also complicate my quries because 'select *...' could no longer be used.

Is there any way to overcome this without building huge SQL+SQLUpdate+SQLInsert etc.?

Regards,
Crafty

Posted: Mon 05 May 2008 13:28
by Antaeus
crafty wrote:Is it possible to have a field which is a User Defined Type (Assembly) get detected as a string with read and write operations?
It is not possible, but you can access members of UDT values through the AsUDT property. For more information see the UDT demo and the Readme.html file in its directory. You can find this demo in the SDAC_InstDir\Demos\SdacDemo\ directory. The path may vary depending on your IDE. SDAC_InstDir is the SDAC installation directory on your computer.