DaniWeb IT Discussion Community

Blogs (http://www.daniweb.com/blogs/)
-   Member Blogs (http://www.daniweb.com/blogs/blogs.php)
-   -   hollystyles's Blog (http://www.daniweb.com/blogs/blog29709.html)
-   -   -   Sql STR() (http://www.daniweb.com/blogs/entry1387.html)

hollystyles hollystyles's Blog
Apr 5th, 2007, 9:49 am
Sometimes you find priceless little nuggets of knowledge precisely when you aren't looking for them. Perusing Sql Server books on line I stumbled across the STR() funtion which basically converts any numeric data into a character string. For years I have been typing cast(<someNumericColumn> as varchar) when STR(someNumericColumn) would have sufficed.... Doh!