{"author_name":"dk521123","url":"https://dk521123.hatenablog.com/entry/30917277","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2","provider_url":"https://hatena.blog","categories":["SQL Server"],"image_url":null,"title":"\u3010SQL Server\u3011\u89aa\u5b50\u968e\u5c64\u3092\u8868\u73fe\u3059\u308b","published":"2013-01-14 20:08:18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F30917277\" title=\"\u3010SQL Server\u3011\u89aa\u5b50\u968e\u5c64\u3092\u8868\u73fe\u3059\u308b - \u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://dk521123.hatenablog.com/","provider_name":"Hatena Blog","version":"1.0","type":"rich","description":"\u65b9\u6cd51\uff1aWITH\u3092\u4f7f\u7528\u3059\u308b * SQL Server2005\u4ee5\u964d\u3067\u4f7f\u7528\u53ef\u80fd \u30b5\u30f3\u30d7\u30eb * \u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u306e\u3053\u3068 WITH \u53e5 \uff5e\u5171\u901a\u30c6\u30fc\u30d6\u30eb\u5f0f\uff5e http://blogs.yahoo.co.jp/dk521123/29639816.html \u65b9\u6cd52\uff1aWITH\u304a\u3088\u3073HierarchyID \u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u7528\u3059\u308b * SQL Server2008\u4ee5\u964d\u3067\u4f7f\u7528\u53ef\u80fd \u30b5\u30f3\u30d7\u30eb WITH cte (path, [Id], [name], [bossId], [Hierarchy]) AS ( -- \u4e0a\u53f8 SELECT HierarchyID::GetRoot() AS root, [Id], [name],\u2026","author_url":"https://blog.hatena.ne.jp/dk521123/","width":"100%","height":"190"}