{"id":341,"date":"2009-10-02T16:46:28","date_gmt":"2009-10-02T07:46:28","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=341"},"modified":"2009-10-02T16:52:41","modified_gmt":"2009-10-02T07:52:41","slug":"sql-server-management-studio%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e6%a7%8b%e6%88%90%e6%83%85%e5%a0%b1%e3%81%8c%e4%bd%9c%e3%82%8c%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/341","title":{"rendered":"SQL Server Management Studio\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u6210\u60c5\u5831\u304c\u4f5c\u308c\u306a\u3044"},"content":{"rendered":"<p>SQL Server 2005\/2008\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u304d\u306f\u3001SQL Server Management Studio \u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3060\u3002<\/p>\n<p>Microsoft SQL Server Management Studio Express<br \/>\nhttp:\/\/www.microsoft.com\/downloads\/details.aspx?displaylang=ja&#038;FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796<\/p>\n<p>\u4f7f\u3063\u3066\u3044\u308b\u3051\u3069(\u591a\u5206)Express\u7248\u3067\u3082\u88fd\u54c1\u7248\u3067\u3082\u540c\u3058\u3002GUI\u3067\u307d\u3061\u307d\u3061\u3059\u308b\u3060\u3051\u3067\u69cb\u6210\u304c\u308f\u304b\u308b\u306e\u3067\u4fbf\u5229\u306a\u3093\u3060\u3051\u3069\u3002\u843d\u3068\u3057\u7a74\u304c\u3042\u308b\uff08\u306e\u304b\u306a\uff1f\uff09\u3002<\/p>\n<p>\u7279\u5b9a\u306e\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u3059\u308b\u3068\u304d\u306b\u3001<\/p>\n<p>1.\u30ed\u30fc\u30eb\u3092\u4f5c\u308b\u3002<br \/>\n2.\u30ed\u30fc\u30eb\u3078\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u3092\u52a0\u3048\u308b\u3002<br \/>\n3.\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u304b\u3089db_owner\u3092\u5916\u3059\u3002<br \/>\n4.\u30ed\u30fc\u30eb\u306b\u30c6\u30fc\u30d6\u30eb\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u4e0e\u3048\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3092\u3059\u308b\u3068\u601d\u3046\u3093\u3060\u304c\u3002<br \/>\n# \u6700\u8fd1\u306f\u30a2\u30af\u30bb\u30b9\u6a29\u81ea\u4f53\u3092\u89e6\u3089\u306a\u3044DBA(\u3068\u306f\u8a00\u308f\u306a\u3044\u306a)\u3082\u3044\u308b\u306e\u3067\u3001<br \/>\n# \u306a\u3093\u3068\u3082\u8a00\u3048\u307e\u305b\u3093\u304c\u3002<\/p>\n<p>SQL Server 6.0\u306e\u9803\u306fEnterprise Manager\u3092\u4f7f\u3063\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5410\u304d\u51fa\u3057\u3066\u3044\u305f\u3002\u305d\u3057\u3066\u624b\u3067\u5c11\u3057\u4fee\u6b63\u3059\u308b\u3050\u3089\u3044\u3002<br \/>\n\u3067\u3001\u540c\u3058\u3088\u3046\u306b\u306eManagement Studio\u306eGUI\u3067\u30ed\u30fc\u30eb\u3092\u4f5c\u6210\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u5f8c\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5410\u304d\u51fa\u3057\u3066\u307f\u305f\u3089\u3001\u3001\u3001\u3042\u3089\u3089\u3001\u5148\u306e2,3,4\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5168\u304f\u5410\u304d\u51fa\u3055\u308c\u3066\u3044\u306a\u3044\u3058\u3083\u306a\u3044\u3067\u3059\u304b\uff01<\/p>\n<p>\u5177\u4f53\u7684\u306b\u66f8\u304f\u3068\u3001\u6b21\u306e\u3088\u3046\u306b limit \u30ed\u30fc\u30eb\u3068\u3001normal \u30e6\u30fc\u30b6\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f5c\u6210\u3067\u304d\u3066\u3044\u308b\u306e\u3060\u304c\u3001<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nCREATE ROLE &#x5B;limit] AUTHORIZATION &#x5B;dbo]\r\nGO\r\nCREATE LOGIN &#x5B;normal] WITH PASSWORD=N'normal', DEFAULT_DATABASE=&#x5B;sampledb], \r\n CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF\r\nGO\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b db_owner \u304b\u3089\u53d6\u308a\u9664\u3044\u305f\u308a\u3001limit \u30ed\u30fc\u30eb\u306b\u52a0\u3048\u305f\u308a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u4f55\u51e6\u306b\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nexec sp_droprolemember 'db_owner', 'normal'\r\ngo\r\nexec sp_addrolemember 'limit', 'normal'\r\ngo\r\n<\/pre>\n<p>\u66f4\u306b\u8a00\u3048\u3070\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u8a2d\u5b9a\u3082\u5168\u304f\u3067\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\u3093\uff5e\u3001\u3069\u3046\u306a\u3093\u3067\u3057\u3087\u3046\u306d\u3002sp_droprolemember, sp_addrolemember \u306e\u30b7\u30b9\u30c6\u30e0\u7cfb\u306e\u30b9\u30c8\u30a2\u30c9\u3092\u30d8\u30eb\u30d7\u304b\u3089\u63a2\u3055\u306a\u3044\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u6210\u60c5\u5831\u304c\u4f5c\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u306e\u3069\u3093\u306a\u3082\u3093\u306a\u3093\u3067\u3057\u3087\u3046\uff1f<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u308c\u304b\u3089\u624b\u4f5c\u696d\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u7bc9\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3002\u3057\u304f\u3057\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL Server 2005\/2008\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u304d\u306f\u3001SQL Server Management Studio \u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3060\u3002 Microsoft SQL Server Management Studio Exp &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/341\">\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":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-dev"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":343,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/341\/revisions\/343"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}