{"id":389,"date":"2014-09-26T18:10:02","date_gmt":"2014-09-26T09:10:02","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=389"},"modified":"2014-09-26T18:10:02","modified_gmt":"2014-09-26T09:10:02","slug":"sql-server-management-studio-%e3%81%a7-sql%e3%82%92%e4%b8%80%e7%99%ba%e6%95%b4%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=389","title":{"rendered":"SQL Server Management Studio \u3067 SQL\u3092\u4e00\u767a\u6574\u5f62"},"content":{"rendered":"<p>Microsoft SQL Server Management Studio (SSMS) \u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fSQL\u306e\u6574\u5f62\u6a5f\u80fd\u306f\u306a\u3044\u3002<\/p>\n<p>\u81ea\u5206\u3067\u4e00\u304b\u3089\u4f5c\u3063\u305fSQL\u306f\u898b\u3084\u3059\u304f\u4f5c\u3063\u3066\u3044\u308b\u304c\u3001<del>\u304f\u305d\u30c3\u305f\u308c<\/del>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5165\u308b\u3068\u3001\u9811\u5f35\u3063\u305fSQL\u304c\u6bce\u56de\u30b0\u30c3\u30c1\u30e3\u30b0\u30c1\u30e3\u306b\u306a\u308b\u3002<br \/>\n\u3082\u3046\u3001\u3042\u304d\u3089\u3081\u3066\u3001\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u306a\u308b\u3082\u306e\u304b\u3089\u9811\u5f35\u3063\u3066\u307f\u308b\u3051\u3069\u3001\u306a\u3093\u3060\u304b\u5206\u304b\u308a\u306b\u304f\u3044\u3057\u3001\u72ed\u3044\u3057\u3002<br \/>\n\u7d50\u5c40SQL\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001SSMS\u3067\u4fee\u6b63\u3057\u3066\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u3063\u3066\u3084\u3063\u3066\u305f\u3089\u3001\u6bce\u56de\u3001Web\u4e0a\u306eSQL\u6574\u5f62\u30b5\u30fc\u30d3\u30b9\u306b\u30b3\u30d4\u30fc\u3059\u308b\u306e\u3082\u3057\u3093\u3069\u304f\u306a\u3063\u305f\u306e\u3067\u3001SSMS\u306b\u30a2\u30c9\u30a4\u30f3\u3092\u5165\u308c\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u30a2\u30c9\u30a4\u30f3\u306e\u540d\u524d\u306f\u3001<strong>Poor Mans&#8217;s T-SQL Formatter<\/strong><\/p>\n<p>\u76f4\u8a33\u3059\u308b\u3068\u3001 \u3061\u3087\u3063\u3068\u3057\u305fT-SQL\u7528\u306e\u6574\u5f62\u6a5f\u80fd \u3063\u3066\u611f\u3058\uff1f<\/p>\n<p>SSMS\u306b\u9650\u3089\u305a\u3001Visual Studio \u3001 WinMearge\u3001Notpad++ \u306a\u3069\u7528\u3082\u3042\u308b\u307f\u305f\u3044\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001SSMS \u3068\u3064\u3044\u3067\u306bVisual Studio \u306b\u3082\u5165\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30a2\u30c9\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u307e\u305a\u306f\u3001<a href=\"http:\/\/www.architectshack.com\/PoorMansTSqlFormatter.ashx#Download_5\">\u30b3\u30b3<\/a>\u304b\u3089\u3001SSMS and Visual Studio Add-In \u306e SqlFormatterSSMSAddIn.Setup.1.5.3.msi (2014\/09\/26 \u6642\u70b9) \u3092\u843d\u3068\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306a\u306e\u3067\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u958b\u59cb\u3002<br \/>\n<a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-390\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql1.png\" alt=\"pmTsql1\" width=\"513\" height=\"421\" \/><\/a><\/p>\n<p>License\u306b\u540c\u610f\u3059\u308b\u3002Lincens\u306fGNU GPL V3 \u306a\u3093\u3067\u3001SSMS\u306b\u5165\u308c\u3066\u4f7f\u7528\u3059\u308b\u5206\u306b\u306f\u554f\u984c\u306a\u3044\u306f\u305a\u3002<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-391\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql2.png\" alt=\"pmTsql2\" width=\"513\" height=\"421\" \/><\/a><\/p>\n<p>Visual Studio \u306b\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u304b\uff1f\u3082\u3061\u308d\u3093\u30c1\u30a7\u30c3\u30af\u3002<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-392\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql3.png\" alt=\"pmTsql3\" width=\"513\" height=\"421\" \/><\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-393\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql4.png\" alt=\"pmTsql4\" width=\"513\" height=\"421\" \/><\/a><\/p>\n<p>\u3053\u306e\u3042\u3068\u3001\u5b8c\u4e86\u306b\u306a\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>SSMS\u3092\u7acb\u3061\u4e0a\u3052\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d<\/h2>\n<p>SSMS\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u30c4\u30fc\u30eb\u306b\u3001\u4e0b\u8a18\u753b\u50cf\u306e\u3088\u3046\u306bFormat T-SQL Code \u3068 T-SQL Formatting Options&#8230; \u304c\u5897\u3048\u3066\u3044\u305f\u3089OK\u3002<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-394\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql7.png\" alt=\"pmTsql7\" width=\"341\" height=\"258\" \/><\/a><\/p>\n<p>\u9069\u5f53\u306b\u3001\u6574\u5f62\u3055\u308c\u3066\u306a\u3044SQL\u6587\u3092\u8868\u793a\u3057\u3066<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-395\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql5.png\" alt=\"pmTsql5\" width=\"1007\" height=\"82\" \/><\/a><\/p>\n<p>Ctrl\u62bc\u3057\u306a\u304c\u3089K,F (Ctrl+K, Ctrl+F) \u3067\u3001<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-396\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql6.png\" alt=\"pmTsql6\" width=\"387\" height=\"271\" \/><\/a><\/p>\n<p><strong>\u4e00\u767a\u6574\u5f62\uff01<\/strong><\/p>\n<p><strong>\u7d20\u6674\u3089\u3057\u3044\uff01\uff01<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u6574\u5f62\u306e\u30aa\u30d7\u30b7\u30e7\u30f3(T-SQL Formatting Options&#8230;)\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<p><a href=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-397\" src=\"http:\/\/gomocool.net\/gomokulog\/wp-content\/uploads\/2014\/09\/pmTsql8.png\" alt=\"pmTsql8\" width=\"451\" height=\"347\" \/><\/a><\/p>\n<p>\u30bf\u30d6\u306b\u3059\u308b\u304b\u30b9\u30da\u30fc\u30b9\u306b\u3059\u308b\u304b\u3068\u304b\u3068\u304b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001Visual Studio \u306e\u30c4\u30fc\u30eb\u30e1\u30cb\u30e5\u30fc\u306b\u3082\u8ffd\u52a0\u3055\u308c\u3066\u3044\u305f\u3002<br \/>\nsql\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u6642\u306b\u3001\u30c4\u30fc\u30eb\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u8a66\u3057\u305f\u3089\u3061\u3083\u3093\u3068\u52d5\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3044\u3084\u3001\u3053\u308c\u306f\u3044\u3044\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft SQL Server Management Studio (SSMS) \u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fSQL\u306e\u6574\u5f62\u6a5f\u80fd\u306f\u306a\u3044\u3002 \u81ea\u5206\u3067\u4e00\u304b\u3089\u4f5c\u3063\u305fSQL\u306f\u898b\u3084\u3059\u304f\u4f5c\u3063\u3066\u3044\u308b\u304c\u3001\u304f\u305d\u30c3\u305f\u308c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5165\u308b\u3068\u3001\u9811\u5f35&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=389\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,69],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-sqlserver","category-69"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":2,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":399,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/399"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}