{"id":1215,"date":"2014-01-30T17:10:30","date_gmt":"2014-01-30T08:10:30","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_dbmoto\/?p=1215"},"modified":"2014-02-01T22:42:44","modified_gmt":"2014-02-01T13:42:44","slug":"sql-server%e3%81%a7%e3%81%ae%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7%e5%bf%85%e8%a6%81%e3%81%aa%e6%a8%a9%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/1215","title":{"rendered":"DBMoto\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306aSQL Server\u30e6\u30fc\u30b6\u6a29\u9650"},"content":{"rendered":"<p>\u30102014\/1\/30 \u8a18\u4e8b\u6539\u8a02\u3011<\/p>\n<p>DBMoto\u3067\u4f7f\u7528\u3059\u308bSQL Server\u30e6\u30fc\u30b6\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u540d\u3092\u300cdbmoto\u300d\u3068\u3057\u305f\u5834\u5408\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\u25a0SQL Server Management Studio\u304b\u3089\u7c21\u6613\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u5834\u5408<\/strong><\/span><\/p>\n<p><span style=\"text-decoration: underline;\">\u25cf\u30c6\u30fc\u30d6\u30eb\u7528\uff08\u30bd\u30fc\u30b9\u30fb\u30bf\u30fc\u30b2\u30c3\u30c8\u5171\u901a\uff09<\/span><\/p>\n<p>1. SQL Server Management Studio\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u21d2\u30ed\u30b0\u30a4\u30f3\u21d2\u65b0\u3057\u3044\u30ed\u30b0\u30a4\u30f3\u3000\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1216\" title=\"20130619-12\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-12-300x260.png\" alt=\"\" width=\"300\" height=\"260\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-12-300x260.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-12.png 381w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2. \u8a8d\u8a3c\u65b9\u6cd5\u306f\u300cSQL Server\u8a8d\u8a3c\u300d\u3092\u5fc5\u305a\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1217\" title=\"20130619-13\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-13-300x269.png\" alt=\"\" width=\"300\" height=\"269\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-13-300x269.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-13.png 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>3. \u30e6\u30fc\u30b6\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u753b\u9762\u306b\u3066\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u305f\u3044\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5bfe\u8c61\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u30b9\u30ad\u30fc\u30de\uff09\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ed\u30fc\u30eb\u306b\u3066\u300cdb_owner\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<br \/>\n\u203b\u753b\u9762\u4f8b\u3067\u306fVeeamBaukup\u3068\u3044\u3046\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u203b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5bfe\u8c61\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3059\u3079\u3066\u306b\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u203b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u30fb\u30b7\u30f3\u30af\u30ed\u30ca\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u3001\u30c8\u30ea\u30ac\u30fc\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u30c8\u30ea\u30ac\u30fc\u3092\u914d\u7f6e\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3082\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1218\" title=\"20130619-14\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-14-300x269.png\" alt=\"\" width=\"300\" height=\"269\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-14-300x269.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-14.png 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"text-decoration: underline;\">\u25cf\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u7528<\/span><\/p>\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u8907\u88fd\u5143\u30bd\u30fc\u30b9\uff09\u3067<span style=\"text-decoration: underline;\"><strong>\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u4e0a\u8a18\u306e\u30c6\u30fc\u30d6\u30eb\u5c02\u7528\u30e6\u30fc\u30b6\u3068\u306f<span style=\"color: #0000ff;\">\u5225\u306b<\/span>sysadmin\u6a29\u9650\u3092\u6301\u3063\u305f\u30e6\u30fc\u30b6\u304c\u5fc5\u8981<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u4f5c\u6210\u753b\u9762\u306b\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30ed\u30fc\u30eb\u3092\u9078\u629e\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ed\u30fc\u30eb\u3067\u300csysadmin\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1219\" title=\"20130619-15\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-15-300x269.png\" alt=\"\" width=\"300\" height=\"269\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-15-300x269.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2013\/06\/20130619-15.png 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\u25a0\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u6700\u5c0f\u9650\u306e\u6a29\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\uff1a<\/strong><\/span><\/p>\n<p><span style=\"text-decoration: underline;\">\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5143\u30bd\u30fc\u30b9\u7528<\/span><\/p>\n<p><span style=\"text-decoration: underline;\">\uff1c\u203b\u30c8\u30ea\u30ac\u30fc\u4f7f\u7528\u306e\u5834\u5408\uff1e<\/span><\/p>\n<p>\/\/ \u30ed\u30b0\u30a4\u30f3\u4f5c\u6210<br \/>\n&gt;create login dbmoto with password = &#8216;dbmoto&#8217;;<\/p>\n<p>\/\/ \u4f7f\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u30c6\u30fc\u30d6\u30eb\u7528\uff09\u203b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092climb\u3068\u3059\u308b<br \/>\n&gt;use climb;<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\n&gt;create user dbmoto;<\/p>\n<p>\/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u6a29\u9650<br \/>\n&gt;grant connect to dbmoto;<\/p>\n<p>\/\/ \u8aad\u307f\u53d6\u308a\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datareader&#8217;, &#8216;dbmoto&#8217;;\u3000\u53c8\u306f<br \/>\n&gt;grant select on schema::dbo to dbmoto;\u3000\u53c8\u306f<br \/>\n&gt;grant select on dbo.\u30c6\u30fc\u30d6\u30eb\u540d to dbmoto;<\/p>\n<p>\/\/ \u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u524a\u9664\u6a29\u9650<br \/>\n&gt;grant alter on schema::dbo to dbmoto;<br \/>\n&gt;grant create table to dbmoto;<\/p>\n<p>\/\/ \u4f7f\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u30c8\u30ea\u30ac\u30fc\u30ed\u30b0\u30c6\u30fc\u30d6\u30eb\u7528\uff09\u203b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092dbmtrg\u3068\u3059\u308b<br \/>\n&gt;use dbmtrg;<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\n&gt;create user dbmoto;<\/p>\n<p>\/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u6a29\u9650<br \/>\n&gt;grant connect to dbmoto;<\/p>\n<p>\/\/ \u8aad\u307f\u53d6\u308a\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datareader&#8217;, &#8216;dbmoto&#8217;;\u3000\u53c8\u306f<br \/>\n&gt;grant select on schema::dbo to dbmoto;\u3000\u53c8\u306f<br \/>\n&gt;grant select on dbo.\u30c6\u30fc\u30d6\u30eb\u540d to dbmoto;<\/p>\n<p>\/\/ \u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u524a\u9664\u6a29\u9650<br \/>\n&gt;grant alter on schema::dbo to dbmoto;<br \/>\n&gt;grant create table to dbmoto;<\/p>\n<p>\/\/ \u7de8\u96c6\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datawriter&#8217;, &#8216;dbmoto&#8217;\u3000\u53c8\u306f<br \/>\n&gt;grant insert, update, delete on schema::dbo to dbmoto;<\/p>\n<p>\uff1c\u203b\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u4f7f\u7528\u306e\u5834\u5408\uff1e<\/p>\n<p>\/\/ \u30c6\u30fc\u30d6\u30eb\u7528\u30ed\u30b0\u30a4\u30f3\u4f5c\u6210<br \/>\n&gt;create login dbmoto with password = &#8216;dbmoto&#8217;;<\/p>\n<p>\/\/ \u4f7f\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u30c6\u30fc\u30d6\u30eb\u7528\uff09\u203b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092climb\u3068\u3059\u308b<br \/>\n&gt;use climb;<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\n&gt;create user dbmoto;<\/p>\n<p>\/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u6a29\u9650<br \/>\n&gt;grant connect to dbmoto;<\/p>\n<p>\/\/ \u8aad\u307f\u53d6\u308a\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datareader&#8217;, &#8216;dbmoto&#8217;;\u3000\u53c8\u306f<br \/>\n&gt;grant select on schema::dbo to dbmoto;\u3000\u53c8\u306f<br \/>\n&gt;grant select on dbo.\u30c6\u30fc\u30d6\u30eb\u540d to dbmoto;<\/p>\n<p>\/\/ \u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u7528\u30ed\u30b0\u30a4\u30f3\u4f5c\u6210<br \/>\n&gt;create login dbmsa with password = &#8216;dbmsa&#8217;;<br \/>\n\u203b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u8907\u88fd\u5143\u30bd\u30fc\u30b9\uff09\u3067<strong>\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5c02\u7528\u30e6\u30fc\u30b6\u3068\u306f\u5225\u306bsysadmin\u6a29\u9650\u3092\u6301\u3063\u305f\u30e6\u30fc\u30b6\u304c\u5fc5\u8981<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002\u00a0\u3053\u3053\u3067\u306f\u30e6\u30fc\u30b6\u540d\u3092dbmsa\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\/\/ sysadmin \u6a29\u9650<br \/>\n&gt;exec sp_addsrvrolemember &#8216;dbmsa&#8217;, &#8216;sysadmin&#8217;;<\/p>\n<p><span style=\"text-decoration: underline;\">\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5148\u30bf\u30fc\u30b2\u30c3\u30c8\u7528<\/span><\/p>\n<p>\/\/ \u30ed\u30b0\u30a4\u30f3\u4f5c\u6210<br \/>\n&gt;create login dbmoto with password = &#8216;dbmoto&#8217;;<\/p>\n<p>\/\/ \u4f7f\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u30c6\u30fc\u30d6\u30eb\u7528\uff09\u203b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092climb\u3068\u3059\u308b<br \/>\n&gt;use climb;<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\n&gt;create user dbmoto;<\/p>\n<p>\/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u6a29\u9650<br \/>\n&gt;grant connect to dbmoto;<\/p>\n<p>\/\/ \u8aad\u307f\u53d6\u308a\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datareader&#8217;, &#8216;dbmoto&#8217;;\u3000\u53c8\u306f<br \/>\n&gt;grant select on schema::dbo to dbmoto;\u3000\u53c8\u306f<br \/>\n&gt;grant select on dbo.\u30c6\u30fc\u30d6\u30eb\u540d to dbmoto;<\/p>\n<p>\/\/ \u7de8\u96c6\u6a29\u9650<br \/>\n&gt;exec sp_addrolemember &#8216;db_datawriter&#8217;, &#8216;dbmoto&#8217;\u3000\u53c8\u306f<br \/>\n&gt;grant insert, update, delete on schema::dbo to dbmoto;<\/p>\n<p>\/\/ \u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u30fbTRUNCATE\u6a29\u9650<br \/>\n&gt;grant alter on schema::dbo to dbmoto;<br \/>\n&gt;grant create table to dbmoto;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30102014\/1\/30 \u8a18\u4e8b\u6539\u8a02\u3011 DBMoto\u3067\u4f7f\u7528\u3059\u308bSQL Server\u30e6\u30fc\u30b6\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002 \u30e6\u30fc\u30b6\u540d\u3092\u300cdbmoto\u300d\u3068\u3057\u305f\u5834\u5408\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002 \u25a0SQL Server Management Stu &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/1215\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[119,16],"class_list":["post-1215","post","type-post","status-publish","format-standard","hentry","category-syniti","tag-119","tag-sql-server"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":7,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"predecessor-version":[{"id":1803,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/1215\/revisions\/1803"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}