SELECT
ROUND(744, -3)
ROUND(744.0, -3)
SQL_VARIANT_PROPERTY(744.0,
'BaseType'
)
as
BaseType,
'Precision'
Precision
,
'Scale'
Scale,
'MaxLength'
MaxLength
Naomi N edited Revision 14. Comment: Added See Also
Naomi N edited Revision 13. Comment: Formatting
Naomi N edited Revision 11. Comment: Added link to the blog
Naomi N edited Revision 10. Comment: Minor edit
Naomi N edited Revision 7. Comment: Added toc
Naomi N edited Revision 6. Comment: Minor edit
Samuel Lester - MSFT edited Revision 5. Comment: Removed image since it was too bulky and replaced with a table for readability.
Samuel Lester - MSFT edited Revision 4. Comment: Formatting of the result set was a little confusing, so I just added a picture of the results from SSMS for readability.
Naomi N edited Revision 3. Comment: Minor edit
Naomi N edited Revision 1. Comment: Added content
Congratulations on winning the gold! blogs.technet.com/.../technet-guru-awards-june-2013.aspx
Thanks
The two blog posts featuring your article are up!
Wiki Ninjas on TechNet blogs: blogs.technet.com/.../june-t-sql-guru-naomi-brings-us-quot-how-sql-server-determines-type-of-the-constant-quot.aspx
And on MSDN blogs: blogs.msdn.com/.../transact-sql-guru-how-sql-server-determines-type-of-the-constant.aspx
Thanks for all your contributions!
And finally this article was featured on the home page of TNWiki: social.technet.microsoft.com/.../default.aspx
Thank you!