{"id":364,"date":"2014-08-26T11:19:58","date_gmt":"2014-08-26T03:19:58","guid":{"rendered":"http:\/\/suherman.asia\/w2\/?p=364"},"modified":"2014-08-26T11:19:58","modified_gmt":"2014-08-26T03:19:58","slug":"create-contained-database","status":"publish","type":"post","link":"http:\/\/suherman.asia\/w2\/create-contained-database.html","title":{"rendered":"How to Create Contained Database"},"content":{"rendered":"<p>Melanjutkan artikel saya tentang <a title=\"SQL Server 2012 New Feature \u2013 Contained database\" href=\"http:\/\/suherman.asia\/w2\/sql-server-2012-new-feature-contained-database-2.html\">Contained Database <\/a>beberapa hari lalu. saya coba lanjutkan dengan cara membuat Contained Database di sebuah Instance.<!--more--><\/p>\n<p>Fitur Contained Database di SQL Server 2012 secara default adalah dalam posisi disabled. Oleh sebab itu kita harus meng-enabled kannya terlebih dahulu.<\/p>\n<pre class=\"lang:tsql decode:true\">EXEC SP_CONFIGURE 'show advanced options',1\r\nGO\r\nRECONFIGURE\r\nGO\r\nEXEC SP_CONFIGURE 'contained database authentication',1\r\nGO\r\nRECONFIGURE\r\nGO<\/pre>\n<p>Setelah itu barulah kita dapat membuat Contained Database nya, berikut ini saya coba membuat database sederhana yang namanya CDB2<\/p>\n<pre class=\"lang:tsql decode:true \">USE [master]\r\nGO\r\n\r\nCREATE DATABASE [CDB2] CONTAINMENT = PARTIAL<\/pre>\n<p>Selanjutnya kita akan coba bagaimana membuat user untuk database CDB2 ini.<\/p>\n<pre class=\"lang:tsql decode:true \">USE [CDB2]\r\nGO\r\n\r\nCREATE USER [MugiBJM] WITH PASSWORD=N'P@ssw0rd'\r\nGO\r\n\r\nUSE [CDB2]\r\nGO\r\n\r\nALTER ROLE [db_datareader] ADD MEMBER [MugiBJM]\r\nGO<\/pre>\n<p>Jika anda check keberadaan User MugiBJM di Level Instance pada folder Security \u2013&gt; Logins, maka anda tidak akan pernah menemukannya. Namun user tersebut terdaftar pada security level Database.<\/p>\n<p>Mari kita coba melakukan login ke dalam database CDB2 dengan menggunakan user MugiBJM<\/p>\n<p><a href=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-365\" src=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/01.png\" alt=\"01\" width=\"426\" height=\"321\" srcset=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/01.png 426w, http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/01-300x226.png 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/a><\/p>\n<p>Jangan langsung tekan tombol Connect, tapi tekan lebih dahulu tombol <strong>options&gt;&gt;<\/strong> lalu ketik secara manual nama database yang hendak diakses pada isian \u2018Connect to Database\u2019<\/p>\n<p><a href=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-366\" src=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/02.png\" alt=\"02\" width=\"407\" height=\"478\" srcset=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/02.png 407w, http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/02-255x300.png 255w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/a><\/p>\n<p>Lalu tekan tombol Connect, dan walah anda berhasil login kedalam database CDB2<\/p>\n<p><a href=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-367\" src=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\" alt=\"03\" width=\"394\" height=\"262\" srcset=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png 394w, http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03-300x199.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<p>Demikian semoga bermanfaat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Melanjutkan artikel saya tentang Contained Database beberapa hari lalu. saya coba lanjutkan dengan cara membuat Contained Database di sebuah Instance.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/suherman.asia\/w2\/create-contained-database.html\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":367,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[25],"class_list":["post-364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql-server","tag-contained-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create Contained Database - Suherman Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/suherman.asia\/w2\/create-contained-database.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Contained Database - Suherman Blog\" \/>\n<meta property=\"og:description\" content=\"Melanjutkan artikel saya tentang Contained Database beberapa hari lalu. saya coba lanjutkan dengan cara membuat Contained Database di sebuah Instance. Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/suherman.asia\/w2\/create-contained-database.html\" \/>\n<meta property=\"og:site_name\" content=\"Suherman Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/emantin34\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/emantin34\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-26T03:19:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\" \/>\n\t<meta property=\"og:image:width\" content=\"394\" \/>\n\t<meta property=\"og:image:height\" content=\"262\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#article\",\"isPartOf\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html\"},\"author\":{\"name\":\"admin\",\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc\"},\"headline\":\"How to Create Contained Database\",\"datePublished\":\"2014-08-26T03:19:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html\"},\"wordCount\":159,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc\"},\"image\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage\"},\"thumbnailUrl\":\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\",\"keywords\":[\"Contained database\"],\"articleSection\":[\"SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/suherman.asia\/w2\/create-contained-database.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html\",\"url\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html\",\"name\":\"How to Create Contained Database - Suherman Blog\",\"isPartOf\":{\"@id\":\"http:\/\/suherman.asia\/w2\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage\"},\"thumbnailUrl\":\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\",\"datePublished\":\"2014-08-26T03:19:58+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/suherman.asia\/w2\/create-contained-database.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage\",\"url\":\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\",\"contentUrl\":\"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png\",\"width\":394,\"height\":262},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/suherman.asia\/w2\/create-contained-database.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/suherman.asia\/w2\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Contained Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/suherman.asia\/w2\/#website\",\"url\":\"http:\/\/suherman.asia\/w2\/\",\"name\":\"Suherman Blog\",\"description\":\"Just Another Geek Site\",\"publisher\":{\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/suherman.asia\/w2\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eed6f889b4c2af2a8c18cb3bf63de6a4?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eed6f889b4c2af2a8c18cb3bf63de6a4?s=96&d=retro&r=g\",\"caption\":\"admin\"},\"logo\":{\"@id\":\"http:\/\/suherman.asia\/w2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/suherman.asia\",\"https:\/\/www.facebook.com\/emantin34\",\"https:\/\/x.com\/emantin34\"],\"url\":\"http:\/\/suherman.asia\/w2\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Contained Database - Suherman Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/suherman.asia\/w2\/create-contained-database.html","og_locale":"en_US","og_type":"article","og_title":"How to Create Contained Database - Suherman Blog","og_description":"Melanjutkan artikel saya tentang Contained Database beberapa hari lalu. saya coba lanjutkan dengan cara membuat Contained Database di sebuah Instance. Continue reading","og_url":"http:\/\/suherman.asia\/w2\/create-contained-database.html","og_site_name":"Suherman Blog","article_publisher":"https:\/\/www.facebook.com\/emantin34","article_author":"https:\/\/www.facebook.com\/emantin34","article_published_time":"2014-08-26T03:19:58+00:00","og_image":[{"width":394,"height":262,"url":"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png","type":"image\/png"}],"author":"admin","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#article","isPartOf":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html"},"author":{"name":"admin","@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc"},"headline":"How to Create Contained Database","datePublished":"2014-08-26T03:19:58+00:00","mainEntityOfPage":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html"},"wordCount":159,"commentCount":0,"publisher":{"@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc"},"image":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage"},"thumbnailUrl":"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png","keywords":["Contained database"],"articleSection":["SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/suherman.asia\/w2\/create-contained-database.html#respond"]}]},{"@type":"WebPage","@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html","url":"http:\/\/suherman.asia\/w2\/create-contained-database.html","name":"How to Create Contained Database - Suherman Blog","isPartOf":{"@id":"http:\/\/suherman.asia\/w2\/#website"},"primaryImageOfPage":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage"},"image":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage"},"thumbnailUrl":"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png","datePublished":"2014-08-26T03:19:58+00:00","breadcrumb":{"@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/suherman.asia\/w2\/create-contained-database.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#primaryimage","url":"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png","contentUrl":"http:\/\/suherman.asia\/w2\/wp-content\/uploads\/2014\/08\/03.png","width":394,"height":262},{"@type":"BreadcrumbList","@id":"http:\/\/suherman.asia\/w2\/create-contained-database.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/suherman.asia\/w2"},{"@type":"ListItem","position":2,"name":"How to Create Contained Database"}]},{"@type":"WebSite","@id":"http:\/\/suherman.asia\/w2\/#website","url":"http:\/\/suherman.asia\/w2\/","name":"Suherman Blog","description":"Just Another Geek Site","publisher":{"@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/suherman.asia\/w2\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/63654a129ee88012961c1a00415967dc","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eed6f889b4c2af2a8c18cb3bf63de6a4?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eed6f889b4c2af2a8c18cb3bf63de6a4?s=96&d=retro&r=g","caption":"admin"},"logo":{"@id":"http:\/\/suherman.asia\/w2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/suherman.asia","https:\/\/www.facebook.com\/emantin34","https:\/\/x.com\/emantin34"],"url":"http:\/\/suherman.asia\/w2\/author\/admin"}]}},"_links":{"self":[{"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":1,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":368,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/posts\/364\/revisions\/368"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/media\/367"}],"wp:attachment":[{"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/suherman.asia\/w2\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}