Select YourColumn
From YourTable
Where IsNumeric(YourColumn) = 0
There are certain things in string data that will return true by the IsNumeric function, but would still error when converting to real. However, I suspect that the query shown above will likely show you the bad data you have in the table.
-George
Microsoft SQL Server MVP My Blogs SQLCop
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.