![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I think it doesn call the tostring Method, but your implementation of the UDT is defined in the attributes of the class as UserDefined. With overriding the ToString() method and implementing you own this should work for you. HTH, Jens Suessmeyer. |
#4
| |||
| |||
|
|
My UDT works fine on the server and ToString() will work on the type in a Select. However, even if I install .dll into GAC, SSMS will not display my UDT as a string (i.e. does not call ToString()) so I get byte display instead of string. Anyone know what to look for (i.e. error log, etc.)? -- William Stacey [MVP] |
#5
| |||
| |||
|
|
As far as I know, that's correct behavior. SSMS will never call ToString() for you automatically. -- Adam Machanic Pro SQL Server 2005, available now http://www.apress.com/book/bookDisplay.html?bID=457 -- "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message news:%23NqVmw8FGHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl... My UDT works fine on the server and ToString() will work on the type in a Select. However, even if I install .dll into GAC, SSMS will not display my UDT as a string (i.e. does not call ToString()) so I get byte display instead of string. Anyone know what to look for (i.e. error log, etc.)? -- William Stacey [MVP] |
#6
| |||
| |||
|
|
I know it did at one point as I see blog posts about it. Maybe not in RTM. -- William Stacey [MVP] "Adam Machanic" <amachanic (AT) hotmail (DOT) _removetoemail_.com> wrote in message news:%23OGpy0FGGHA.2680 (AT) TK2MSFTNGP09 (DOT) phx.gbl... As far as I know, that's correct behavior. SSMS will never call ToString() for you automatically. -- Adam Machanic Pro SQL Server 2005, available now http://www.apress.com/book/bookDisplay.html?bID=457 -- "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message news:%23NqVmw8FGHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl... My UDT works fine on the server and ToString() will work on the type in a Select. However, even if I install .dll into GAC, SSMS will not display my UDT as a string (i.e. does not call ToString()) so I get byte display instead of string. Anyone know what to look for (i.e. error log, etc.)? -- William Stacey [MVP] |
#7
| |||
| |||
|
|
Right -- it was removed, IIRC, in the September CTP. -- Adam Machanic Pro SQL Server 2005, available now http://www.apress.com/book/bookDisplay.html?bID=457 -- "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message news:OvlHiaGGGHA.3080 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I know it did at one point as I see blog posts about it. Maybe not in RTM. -- William Stacey [MVP] "Adam Machanic" <amachanic (AT) hotmail (DOT) _removetoemail_.com> wrote in message news:%23OGpy0FGGHA.2680 (AT) TK2MSFTNGP09 (DOT) phx.gbl... As far as I know, that's correct behavior. SSMS will never call ToString() for you automatically. -- Adam Machanic Pro SQL Server 2005, available now http://www.apress.com/book/bookDisplay.html?bID=457 -- "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message news:%23NqVmw8FGHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl... My UDT works fine on the server and ToString() will work on the type in a Select. However, even if I install .dll into GAC, SSMS will not display my UDT as a string (i.e. does not call ToString()) so I get byte display instead of string. Anyone know what to look for (i.e. error log, etc.)? -- William Stacey [MVP] |
#8
| |||
| |||
|
|
Anyone know why this is? It would have seemed to be bone simple to at least add a check box in options to enable/disable this feature. -- William Stacey [MVP] "Adam Machanic" <amachanic (AT) hotmail (DOT) _removetoemail_.com> wrote in message news:e$GGwRIGGHA.1452 (AT) TK2MSFTNGP11 (DOT) phx.gbl... | Right -- it was removed, IIRC, in the September CTP. | | | -- | Adam Machanic | Pro SQL Server 2005, available now | http://www.apress.com/book/bookDisplay.html?bID=457 | -- | | | "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message | news:OvlHiaGGGHA.3080 (AT) TK2MSFTNGP10 (DOT) phx.gbl... | >I know it did at one point as I see blog posts about it. Maybe not in RTM. | | > -- | > William Stacey [MVP] | | > "Adam Machanic" <amachanic (AT) hotmail (DOT) _removetoemail_.com> wrote in message | > news:%23OGpy0FGGHA.2680 (AT) TK2MSFTNGP09 (DOT) phx.gbl... | >> As far as I know, that's correct behavior. SSMS will never call | >> ToString() for you automatically. | | | >> -- | >> Adam Machanic | >> Pro SQL Server 2005, available now | >> http://www.apress.com/book/bookDisplay.html?bID=457 | >> -- | | | >> "William Stacey [MVP]" <william.stacey (AT) gmail (DOT) com> wrote in message | >> news:%23NqVmw8FGHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl... | >>> My UDT works fine on the server and ToString() will work on the type in | >>> a Select. However, even if I install .dll into GAC, SSMS will not | >>> display my UDT as a string (i.e. does not call ToString()) so I get byte | >>> display instead of string. Anyone know what to look for (i.e. error | >>> log, etc.)? | | >>> -- | >>> William Stacey [MVP] | | | | | | | | | |
#9
| |||
| |||
|
|
Agreed... Put in a "suggestion" and I'll vote for it... |
#10
| |||
| |||
|
|
FDBK43960 Cheers. -- William Stacey [MVP] "Adam Machanic" <amachanic (AT) hotmail (DOT) _removetoemail_.com> wrote in message news:eJfmIMLGGHA.1032 (AT) TK2MSFTNGP15 (DOT) phx.gbl... | Agreed... Put in a "suggestion" and I'll vote for it... |
![]() |
| Thread Tools | |
| Display Modes | |
| |