{"id":1346,"date":"2012-11-10T21:26:10","date_gmt":"2012-11-10T13:26:10","guid":{"rendered":"http:\/\/learn-house.idv.tw\/?p=1346"},"modified":"2012-11-10T21:30:49","modified_gmt":"2012-11-10T13:30:49","slug":"%e6%96%bc%e8%b3%87%e6%96%99%e5%ba%ab-master-%e4%b8%ad-create-database-%e7%9a%84%e6%ac%8a%e9%99%90%e9%81%ad%e6%8b%92","status":"publish","type":"post","link":"https:\/\/learn-house.idv.tw\/?p=1346","title":{"rendered":"\u65bc\u8cc7\u6599\u5eab master \u4e2d 'CREATE DATABASE' \u7684\u6b0a\u9650\u906d\u62d2."},"content":{"rendered":"<p>\u5728\u5b89\u88dd\u597dSQL Server 2008\uff0c\u901a\u5e38\u90fd\u6703\u7528Windows\u9a57\u8b49\u7684\u65b9\u5f0f\u767b\u5165<br \/>\n\u4f46\u6b63\u6e96\u5099\u8981\u5efa\u8cc7\u6599\u5eab\u7684\u6642\u5019\uff0c\u6703\u51fa\u73fe<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\u8cc7\u6599\u5eab 'mydb' \u5efa\u7acb\u5931\u6557.\r\n\u5176\u4ed6\u8cc7\u8a0a:\r\n\u57f7\u884c Trasnact SQL \u9673\u8ff0\u5f0f\u6216\u6279\u6b21\u6642\u767c\u751f\u4f8b\u5916\u72c0\u6cc1.\r\n\u65bc\u8cc7\u6599\u5eab master \u4e2d 'CREATE DATABASE' \u7684\u6b0a\u9650\u906d\u62d2. <\/pre>\n<p>\u6211\u7684\u74b0\u5883\u662f<br \/>\nWindows 7 \u5bb6\u7528\u9032\u968e\u7248 64bit<br \/>\nIIS 6.1<br \/>\n<!--more--><br \/>\n\u4e0d\u904e\u4e0d\u78ba\u5b9a\u662f\u4e0d\u662f\u9019\u500b\u74b0\u5883\u624d\u6703\u6709\u9019\u500b\u554f\u984c<br \/>\n\u7db2\u8def\u4e0a\u9047\u5230\u9019\u7a2e\u932f\u8aa4\u5927\u591a\u90fd\u8aaa\u63dbSA\u7684\u5e33\u865f\u767b\u5165<br \/>\n\u6211\u7528SA\u767b\u5165\u504f\u504f\u53c8\u6703\u51fa\u73fe<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\u8207\u4f3a\u670d\u5668\u7684\u9023\u63a5\u5df2\u6210\u529f\u5efa\u7acb\uff0c\u4f46\u5728\u767b\u5165\u7a0b\u5e8f\u6642\u767c\u751f\u932f\u8aa4\u3002\r\n\u7ba1\u9053\u7684\u53e6\u4e00\u7aef\u4e0a\u7121\u4efb\u4f55\u8655\u7406\u7a0b\u5e8f\u3002<\/pre>\n<p>\u5728\u5b89\u88ddSQL Server\u7684\u6642\u5019\u4e5f\u6c92\u6709\u63d0\u793a\u985e\u4f3c\u8981\u6211\u8f38\u5165SA\u7684\u5bc6\u78bc<br \/>\n\u800c\u6709\u8981\u8f38\u5165\u7684\u5bc6\u78bc\u6211\u4e5f\u90fd\u8f38\u5165\u90a3\u4e00\u500b<br \/>\n\u53ef\u662f\u504f\u504f\u767b\u5165\u5c31\u90fd\u6703\u51fa\u73fe\u9019\u6a23\u7684\u932f\u8aa4<br \/>\n\u5f8c\u4f86\u60f3\u8aaa\u90a3\u6211\u91cd\u8a2dSA\u7684\u5bc6\u78bc\u5f8c\u518d\u767b\u5165\u770b\u770b<br \/>\n\u4f46\u4e0a\u7db2\u627e\u5230\u91cd\u8a2dSA\u7684\u65b9\u5f0f<br \/>\n\u5176\u4e2d\u6709\u4e00\u500b\u904e\u7a0b\u9700\u8981\u628a\u73fe\u5728\u767b\u5165\u7684\u5e33\u865f\u52a0\u5165Administrator\u7684\u7fa4\u7d44<br \/>\n\u504f\u504f\u6211\u662f\u5bb6\u7528\u9032\u968e\u7248\uff0c\u53c8\u6c92\u8a2d\u5b9a\u7fa4\u7d44\u7684\u5730\u65b9\uff0c\u9700\u8981\u7528\u5f88\u9ebb\u7169\u7684\u65b9\u5f0f<\/p>\n<p>\u4e0d\u904e\u5f8c\u4f86\u6211\u5728\u958b\u555fSQL Server Management Studio\u5f8c<br \/>\n\u767c\u73fe\u4f3a\u670d\u5668\u540d\u7a31\u7684\u5730\u65b9\uff0c\u9810\u8a2d\u662f<span style=\"color: #0000ff;\"><strong>SQLEXPRESS<\/strong><\/span><br \/>\n\u6211\u628a\u5b83\u6539\u6210<span style=\"color: #0000ff;\"><strong>localhost<\/strong><\/span>\uff0c\u518d\u7528Windows\u9a57\u8b49\u767b\u5165<br \/>\n\u5c31\u80fd\u6b63\u78ba\u5efa\u7acb\u8cc7\u6599\u5eab\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5b89\u88dd\u597dSQL Server 2008\uff0c\u901a\u5e38\u90fd\u6703\u7528Windows\u9a57\u8b49\u7684\u65b9\u5f0f\u767b\u5165 \u4f46\u6b63\u6e96\u5099\u8981\u5efa\u8cc7\u6599\u5eab\u7684\u6642\u5019\uff0c\u6703\u51fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1346","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1346"}],"collection":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1346"}],"version-history":[{"count":0,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1346\/revisions"}],"wp:attachment":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}