|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 2:26 AM
Points: 1,060,
Visits: 4,172
|
|
A good question that has taught me two things:
1. You can't trust SQL's ISNUMERIC function 2. You can build a recursive CTE - although I'm no sure I would want to 
If anyone else has examples of CTE's I bet they'd make for some tricky questions?
Thanks
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 2:24 AM
Points: 5,235,
Visits: 7,040
|
|
jts_2003 (9/29/2010)
2. You can build a recursive CTE - although I'm no sure I would want to  Recursive CTE'sare an invaluable tool when working with hierarchic data (like employee/supervisor relations, parts built of parts built of parts, genealogy data, etc). There are some examples of this in Books Online.
Hugo Kornelis, SQL Server MVP Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 9:38 AM
Points: 385,
Visits: 227
|
|
Very nice question. And one more time I see that 'isnumeric' works in a way which is far away from our expectations. Always used custom made functions instead.
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 1:09 PM
Points: 778,
Visits: 164
|
|
Great question! Now that I know how "liberal" is numeric is, I will be more careful with it. Thanks!!!
|
|
|
|