on 2011 Sep 07 11:27 AM
I know I can use sp_help <datatypename> to get information on a UDT. However is there a way for me to get the base primitive data type through SQL. Querying systypes doesn't seem to give me anything unique to get the primitive type that was used during creation.
Request clarification before answering.
What version are you using?
v12 has introduced the "base_type_str" field in the "SYSUSERTYPE" system view:
select type_name, base_type_str, * from sysusertype
For older versions, you might need to build such a value based on joining SYSUSERTYPE with SYSDOMAIN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
52 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.