{"height":"190","categories":["Dev-Database","Dev","Dev-\u96d1\u8a18"],"author_url":"https://blog.hatena.ne.jp/shin21sk/","version":"1.0","author_name":"shin21sk","published":"2017-01-17 09:00:00","url":"https://shin21.hatenablog.com/entry/2017/01/17/090000","title":"\u3010SQL Server\u3011 \u30c6\u30fc\u30d6\u30eb\u6bce\u306e\u30ab\u30e9\u30e0\u6570\u3092\u8abf\u3079\u308b","type":"rich","image_url":"http://cdn.mogile.archive.st-hatena.com/v1/image/shin21sk/297787085842833745.png","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshin21.hatenablog.com%2Fentry%2F2017%2F01%2F17%2F090000\" title=\"\u3010SQL Server\u3011 \u30c6\u30fc\u30d6\u30eb\u6bce\u306e\u30ab\u30e9\u30e0\u6570\u3092\u8abf\u3079\u308b - modest violet\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","blog_title":"modest violet","blog_url":"https://shin21.hatenablog.com/","description":"SQL Server\u3067\u30c6\u30fc\u30d6\u30eb\u6bce\u306e\u30ab\u30e9\u30e0\u6570\u3092\u8abf\u3079\u308b\u6a5f\u4f1a*1\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u5099\u5fd8\u9332\u3092\u517c\u306d\u3066\u30e1\u30e2 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306a\u306e\u3067\u30af\u30a8\u30ea\u3067\u4e00\u767a \u4e0b\u8a18\u306e\u30af\u30a8\u30ea\u30fc\u4e00\u767a\u3067OK\u3067\u3059 SELECT O.name As TableName, Count(C.name) As ColumnCount FROM sys.objects O INNER JOIN sys.columns C ON O.object_id = C.object_id AND O.type = 'U' GROUP BY O.name \u3055\u3044\u3054\u306b \u4f7f\u3046\u6a5f\u4f1a\u306f\u3042\u307e\u308a\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u306d\u3002 *1:\u672c\u756a\u74b0\u5883\u3068\u958b\u767a\u74b0\u5883\u3067\u306e\u5dee\u7570\u3092\u8abf\u3079\u305f\u308a\u3068\u304b\u3059\u308b\u969b\u306b\u2026","width":"100%","provider_url":"https://hatena.blog"}