{"id":544,"date":"2015-12-27T03:49:41","date_gmt":"2015-12-26T18:49:41","guid":{"rendered":"http:\/\/the-takeo.com\/?p=544"},"modified":"2015-12-27T11:23:34","modified_gmt":"2015-12-27T02:23:34","slug":"sql-server%e3%81%ae%e7%85%a7%e5%90%88%e9%a0%86%e5%ba%8f%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/the-takeo.com\/?p=544","title":{"rendered":"SQL Server\u306e\u7167\u5408\u9806\u5e8f\u3092\u5909\u66f4\u3059\u308b"},"content":{"rendered":"<p>SQL Server\u3067\u306f\u6587\u5b57\u5217\u6bd4\u8f03\u306e\u57fa\u6e96\u3068\u306a\u308b\u7167\u5408\u9806\u5e8f\u304c\u8a2d\u5b9a\u3067\u304d\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u300c\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u300d\u7b49\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u308c\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6bce\u306b\u8a2d\u5b9a\u53ef\u80fd\u3067\u3001\u7279\u306b\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306fSQL Server\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u8a2d\u5b9a\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u7570\u306a\u308b\u7167\u5408\u9806\u5e8f\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001\u30c8\u30e9\u30d6\u30eb\u304c\u767a\u751f\u3057\u3084\u3059\u3044\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u3068\u4f5c\u6210\u3057\u3001\u305d\u308c\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c6\u30fc\u30d6\u30eb\u3092JOIN\u3059\u308b\u3088\u3046\u306a\u30af\u30a8\u30ea\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<br \/>\n\u3053\u308c\u306f\u3001\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u306e\u7167\u5408\u9806\u5e8f\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306b\u306a\u3063\u3066\u304a\u308a\u3001<br \/>\n\u7570\u306a\u308b\u7167\u5408\u9806\u5e8f\u3067\u306e`on Table.col1=temptable.col1`\u3068\u3044\u3046\u6bd4\u8f03\u304c\u884c\u3048\u306a\u3044\u305f\u3081\u3067\u3042\u308b\u3002<br \/>\n\uff08`on Table.col1=temptable.col1 collate Japanese_CI_AS`\u306e\u3088\u3046\u306b\u3001\u30af\u30a8\u30ea\u306e\u4e2d\u3067\u7167\u5408\u9806\u5e8f\u3092\u6307\u5b9a\u3059\u308c\u3070\u30a8\u30e9\u30fc\u306f\u767a\u751f\u3057\u306a\u3044\u3002\uff09<\/p>\n<p>\u4ed5\u4e8b\u306e\u90fd\u5408\u3067\u7167\u5408\u9806\u5e8f\u306e\u5909\u66f4\u3092\u4f59\u5100\u306a\u304f\u3055\u308c\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u624b\u9806\u3092\u30e1\u30e2\u3059\u308b\u3002<br \/>\n\u306a\u304a\u3001\u5b9f\u969b\u306b\u884c\u3063\u305f\u306e\u306fSQL Server 2012\u3060\u304c\u30012008 R2\u30842014\u3067\u3082\u540c\u3058\u3060\u3068\u601d\u3046\u3002<\/p>\n<p><strong>\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5358\u4f53\u306e\u7167\u5408\u9806\u5e8f\u5909\u66f4\u65b9\u6cd5<\/strong><\/p>\n<p>\u4ee5\u4e0b\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308c\u3070\u826f\u3044\u3002<br \/>\n\u5bfe\u8c61\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092`SampleDataBase`\u3001\u7167\u5408\u9806\u5e8f\u3092`Japanese_CI_AS_KS_WS`\u3068\u3059\u308b\u3002<\/p>\n<pre class=\"lang:tsql decode:true \" >ALTER DATABASE SampleDataBase COLLATE Japanese_CI_AS_KS_WS<\/pre>\n<p><strong>\u30fbSQL Server\uff08=\u30b7\u30b9\u30c6\u30e0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09\u306e\u7167\u5408\u9806\u5e8f\u5909\u66f4\u65b9\u6cd5<\/strong><\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5b58\u5728\u3059\u308b\u3068\u5b9f\u884c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9664\u304f\u5168\u3066\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u3002<br \/>\n\uff08\u5fa9\u5143\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u3063\u3066\u304a\u304f\u3002\uff09<\/p>\n<p>SQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b`Setup.exe`\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3053\u306b\u79fb\u52d5\u3059\u308b\u3002<br \/>\n\u898f\u5b9a\u3067\u306f`C:\\Program Files\\Microsoft SQL Server\\110\\Setup Bootstrap\\Release`\u3067\u3042\u308b\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089Setup.exe\u3092\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"lang:tsql decode:true \" >Setup.exe \/QUIET \/ACTION=REBUILDDATABASE \/INSTANCENAME=InstanceName \/SQLSYSADMINACCOUNTS=accounts [ \/SAPWD= StrongPassword ] [ \/SQLCOLLATION=CollationName]<\/pre>\n<p>\u4f8b\u3048\u3070\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u306f\u898f\u5b9a\u306e`MSSQLSERVER`\u3001Windows\u8a8d\u8a3c\u3067Administrator\u304cSQL Server\u306b\u30ed\u30b0\u30a4\u30f3\u53ef\u80fd\u3067\u3001<br \/>\n\u7167\u5408\u9806\u5e8f\u3092`Japanese_CI_AS_KS_WS`\u306b\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"lang:tsql decode:true \" >Setup.exe \/QUIET \/ACTION=REBUILDDATABASE \/INSTANCENAME=MSSQLSERVER \/SQLSYSADMINACCOUNTS=Administrator \/SQLCOLLATION=Japanese_CI_AS_KS_WS<\/pre>\n<hr>\n<p>\u306a\u304a\u3001\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u306eSetup.exe\u3067\u8a66\u3059\u3068\u3046\u307e\u304f\u3044\u304f\u5834\u5408\u304c\u3042\u308b\u3002<br \/>\n\u7406\u7531\u306f\u4e0d\u660e\u3067\u3001\u5076\u7136\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u305d\u3046\u3044\u3046\u5834\u5408\u3082\u3042\u3063\u305f\u3002<\/p>\n<hr>\n<p>\u53c2\u8003<br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/ms175835(v=sql.110).aspx\" target=\"_blank\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7167\u5408\u9806\u5e8f\u306e\u8a2d\u5b9a\u307e\u305f\u306f\u5909\u66f4<\/a><br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/dd207003(v=sql.110).aspx\" target=\"_blank\">\u30b7\u30b9\u30c6\u30e0 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u518d\u69cb\u7bc9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL Server\u3067\u306f\u6587\u5b57\u5217\u6bd4\u8f03\u306e\u57fa\u6e96\u3068\u306a\u308b\u7167\u5408\u9806\u5e8f\u304c\u8a2d\u5b9a\u3067\u304d\u308b\u3002 \u4f8b\u3048\u3070\u300c\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u300d\u7b49\u3067\u3042\u308b\u3002 \u3053\u308c\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6bce\u306b\u8a2d\u5b9a\u53ef\u80fd\u3067\u3001\u7279\u306b\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306fSQL Server\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u8a2d\u5b9a\u3057\u305f\u30b5\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,16],"tags":[],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","category-programming","category-sql-server"],"_links":{"self":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=544"}],"version-history":[{"count":4,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":548,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions\/548"}],"wp:attachment":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}