|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Thursday, January 17, 2013 2:34 PM
Points: 565,
Visits: 360
|
|
Christian Buettner-167247 (5/7/2010)
Paul White NZ (5/6/2010) Please vote and mark as reproducible if you can.Done :) Ditto.
Paul, isn't it worth noting the different "ThePrecision" results from the sql_variant_property() output noted earlier in this discussion? Would you like me to add the following code snippet as a comment to your Connect submission? Thanks.
select sql_variant_property(cast(1.0 as sql_variant), 'BaseType') BaseType, sql_variant_property(cast(1.0 as sql_variant), 'Precision') ThePrecision, sql_variant_property(cast(1.0 as sql_variant), 'Scale') Scale; select sql_variant_property(cast(ROUND(0.5,0) as sql_variant), 'BaseType') BaseType, sql_variant_property(cast(ROUND(0.5,0) as sql_variant), 'Precision') ThePrecision, sql_variant_property(cast(ROUND(0.5,0) as sql_variant), 'Scale') Scale;
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 7:18 PM
Points: 10,989,
Visits: 10,532
|
|
Michael Poppers (5/7/2010) Ditto.
Paul, isn't it worth noting the different "ThePrecision" results from the sql_variant_property() output noted earlier in this discussion? Would you like me to add the following code snippet as a comment to your Connect submission? Thank you for your vote Michael - and yes, please feel free to add the comment
Paul White SQL Server MVP SQLblog.com @SQL_Kiwi
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Thursday, January 17, 2013 2:34 PM
Points: 565,
Visits: 360
|
|
Paul White NZ (5/7/2010)
Michael Poppers (5/7/2010) Ditto.
Paul, isn't it worth noting the different "ThePrecision" results from the sql_variant_property() output noted earlier in this discussion? Would you like me to add the following code snippet as a comment to your Connect submission?Thank you for your vote Michael - and yes, please feel free to add the comment  Done. Thanks.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, July 25, 2012 9:04 PM
Points: 542,
Visits: 187
|
|
| I didn't get any error. i got 0.00 i wonder why
|
|
|
|