{"id":185,"date":"2013-07-14T07:10:00","date_gmt":"2013-07-13T22:10:00","guid":{"rendered":"https:\/\/162.43.49.248\/blog\/?p=185"},"modified":"2013-07-15T06:23:55","modified_gmt":"2013-07-14T21:23:55","slug":"expressweb%e3%81%a7asp-net%e6%a7%8b%e6%88%90%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"https:\/\/yujiro.work\/blog\/?p=185","title":{"rendered":"Expressweb\u3067ASP.NET\u69cb\u6210\u3092\u52d5\u304b\u3059"},"content":{"rendered":"<p>Expressweb\u3092\u501f\u308a\u305f\u306f\u826f\u3044\u3051\u3069\u3001\u3088\u304f\u8003\u3048\u305f\u3089\u7279\u306b\u3084\u308a\u305f\u3044\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u306a\u304b\u3063\u305f\u306e\u3067\u3001 \u3042\u307e\u308a\u6df1\u304f\u8ffd\u6c42\u3057\u3066\u3053\u306a\u304b\u3063\u305f\u79c1\u3067\u3059\u304c\u3001\u4eca\u56de\u5c11\u3057\u8e0f\u307f\u8fbc\u3093\u3067DB\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u305d\u308c\u306b\u3057\u3066\u3082Expressweb\u306b\u7528\u610f\u3055\u308c\u305f\u30de\u30cb\u30e5\u30a2\u30eb\u306e\u4e0d\u89aa\u5207\u306a\u3053\u3068\u3002<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u3068\u304b\u306e\u5b58\u5728\u3092\u5168\u304f\u66f8\u3044\u3066\u306a\u3044\u3088\u3002<\/p>\n<p>\u307e\u3042\u5b89\u304b\u308d\u3046\u4e0d\u89aa\u5207\u3060\u308d\u3046\u3063\u3066\u3053\u3068\u306a\u3093\u3067\u3059\u304b\u306d\u3002<\/p>\n<ul>\n<li>\u306f\u3058\u3081\u306b<\/li>\n<\/ul>\n<p>ASP.NET\u69cb\u6210\u306e\u8a2d\u5b9a\u5024\u306f\u521d\u671f\u72b6\u614b\u306e\u307e\u307e\u3060\u3068App_Data\u306e\u4e0b\u306bAspnetdb.mdf\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3002<br \/>\n\u6b63\u76f4Expressweb\u3067\u52d5\u304b\u305b\u308b\u304b\u3069\u3046\u304b\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3068\u3001\u305b\u3063\u304b\u304f3\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u307b\u3069DB\u7a7a\u9593\u304c\u63d0\u4f9b\u3055\u308c\u3066\u308b\u304b\u3089\u3001\u3084\u306f\u308a\u305d\u308c\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3002<br \/>\n\u3068\u3001\u305d\u3093\u306a\u7a0b\u5ea6\u306e\u7406\u7531\u3067DB\u3092\u8f09\u305b\u66ff\u3048\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u5099\u5fd8\u9332\u4ee3\u308f\u308a\u306b\u8a18\u4e8b\u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><b>(1).ASP.NET\u69cb\u6210\u306eDB\u7a7a\u9593\u3092\u4f5c\u6210\u3059\u308b<\/b><br \/>\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_regsql.exe<br \/>\n\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b5\u30fc\u30d3\u30b9\u306e\u305f\u3081\u306b SQL Server \u3092\u69cb\u6210\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u3066<br \/>\n<strong><span style=\"color: #ff0000;\">DB\u540d\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306easpnetdb\u4ee5\u5916\u306b\u3059\u308b\u3053\u3068<\/span><\/strong><\/p>\n<p><b>(2).DB\u63a5\u7d9a\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u3059\u308b<\/b><br \/>\nManagementStudio(MS\u306e\u7d14\u6b63SQL Server\u7528GUI\u30c4\u30fc\u30eb)\u306e\u4e0a\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>Expressweb\u306e\u30dd\u30ea\u30b7\u30fc\u306b\u5f15\u3063\u639b\u304b\u3089\u306a\u3044\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u30eb\u30fc\u30eb\u3067\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<blockquote><p>\u30e6\u30fc\u30b6\u30fc\u540d:4\u6587\u5b57\u4ee5\u4e0a<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9:8\u6587\u5b57\u4ee5\u4e0a\u82f1\u6570\u8a18\u53f7\u304c\u5fc5\u8981<\/p><\/blockquote>\n<p>\u203b.\u4f5c\u6210\u3057\u305fDB\u306b\u5bfe\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u306b[db_owner]\u3092\u4ed8\u4e0e\u3057\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p><b>(3).\u63a5\u7d9a\u6587\u5b57\u5217\u3092Web.config\u306b\u8a2d\u5b9a\u3059\u308b<\/b><\/p>\n<p>[css]<br \/>\n&lt;connectionStrings&gt;<br \/>\n &lt;remove name=&quot;LocalSqlServer&quot;\/&gt;<br \/>\n &lt;add name=&quot;LocalSqlServer&quot; connectionString=&quot;Persist Security Info=False;Server=PCNAME\\SQLEXPRESS;Initial Catalog=hogedb;PASSWORD=$Hoge1234;User ID=hogera&quot; providerName=&quot;System.Data.SqlClient&quot; \/&gt;<br \/>\n&lt;\/connectionStrings&gt;<br \/>\n[\/css]<\/p>\n<p>\u203b.Expressweb\u306eDB\u30b5\u30fc\u30d0\u30fc\u540d\u306fExpressweb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066<br \/>\n [\u30b9\u30da\u30fc\u30b9]-[(\u30b9\u30da\u30fc\u30b9\u540d)]-[\u30b9\u30da\u30fc\u30b9\u8a73\u7d30\u3092\u8868\u793a]\u306b\u8a18\u8ff0\u3057\u3066\u3042\u308b<\/p>\n<p><b>(4).ASP.NET\u69cb\u6210\u306e\u63a5\u7d9a\u30c6\u30b9\u30c8<\/b><br \/>\nWeb.config\u3092\u4fdd\u5b58\u3057\u305f\u3089ASP.NET\u69cb\u6210\u306b\u3066\u5fc5\u8981\u306a\u8a2d\u5b9a\u3092\u884c\u3046<br \/>\n<a href=\"https:\/\/162.43.49.248\/blog\/wp-content\/uploads\/2013\/07\/aspnet_conf.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"ASP.NET\u69cb\u6210\" src=\"https:\/\/162.43.49.248\/blog\/wp-content\/uploads\/2013\/07\/aspnet_conf.png\" width=\"226\" height=\"87\" \/><\/a><\/p>\n<p><b>(5).\u30ed\u30fc\u30ab\u30eb\u5074\u306b\u3066\u30c7\u30fc\u30bf\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/b><br \/>\nManagementStudio\u306b\u3066DB\u540d\u3092\u53f3\u30af\u30ea\u30c3\u30af [\u30bf\u30b9\u30af]-[\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u751f\u6210]\u306b\u3066\u30af\u30a8\u30ea\u3092\u751f\u6210\u3059\u308b<br \/>\n<a href=\"https:\/\/162.43.49.248\/blog\/wp-content\/uploads\/2013\/07\/mssms.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"SQL Server Management Studio\" src=\"https:\/\/162.43.49.248\/blog\/wp-content\/uploads\/2013\/07\/mssms.png\" width=\"1154\" height=\"514\" \/><\/a><\/p>\n<p>(6).Expressweb\u306b\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<br \/>\n\u57fa\u672c\u7684\u306bExpressweb\u306eSQLServer\u64cd\u4f5c\u306fmyLittleAdmin\u3068\u3044\u3046Web\u30a2\u30d7\u30ea\u306b\u3066\u64cd\u4f5c\u3059\u308b\u3089\u3057\u3044\u3002<br \/>\n\u3053\u3093\u306a\u30c4\u30fc\u30eb\u77e5\u3089\u306a\u304b\u3063\u305f\u3051\u3069\u3001phpMyAdmin\u3088\u308a\u306f\u51fa\u6765\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u500b\u4eba\u7684\u306b\u306f\u601d\u3063\u305f\u3002<br \/>\nmyLittleAdmin\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089[\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9]-[SQL Server 2008]-[\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u53c2\u7167]\u306b\u3066\u8d77\u52d5\u3059\u308b\u3002<br \/>\n\u8d77\u52d5\u3057\u305fmyLittleAdmin\u306e[\u30c4\u30fc\u30eb]-[\u65b0\u3057\u3044\u30af\u30a8\u30ea]\u3092\u958b\u304d\u3001\u5148\u307b\u3069\u751f\u6210\u3057\u305f\u30af\u30a8\u30ea\u3092\u30da\u30fc\u30b9\u30c8\u3057\u3066[\u5b9f\u884c]\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u30a4\u30f3\u30dd\u30fc\u30c8\u5b8c\u4e86\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\u3053\u308c\u3067\u4f5c\u696d\u306f\u4e00\u901a\u308a\u5b8c\u4e86\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u79c1\u306e\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>Visual Studio 2008 Professional<\/p>\n<p>SQL Server 2008 Express<\/p>\n<p>\u306a\u304a\u3001\u3053\u3053\u307e\u3067\u306e\u8aac\u660e\u3067\u610f\u5473\u304c\u30b5\u30c3\u30d1\u30ea\u306a\u4eba\u306fExpressweb\u3092\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068HTTP\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u52d5\u304b\u306a\u3044\u306e\u304c\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3002 \u6c17\u304c\u5411\u3044\u305f\u3089\u30b5\u30dd\u30fc\u30c8\u306b\u554f\u3044\u5408\u308f\u305b\u308b\u3053\u3068\u306b\u3057\u3088\u3046\u3002<\/p>\n<p>\u306a\u3069\u3068\u3053\u3053\u307e\u3067\u66f8\u3044\u3066\u304b\u3089\u7b87\u6761\u66f8\u304d\u306e\u3068\u3053\u308d\u306b<\/p>\n<p>&lt;ol&gt;\u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u3089\u3001\u9023\u7d9a\u3057\u3066\u306a\u3044\u3068\u99c4\u76ee\u3089\u3057\u3044\u3002<br \/>\n\u52dd\u624b\u306b\u5999\u306a\u30bf\u30b0\u88dc\u5b8c\u3055\u308c\u3066\u3001\u610f\u56f3\u3057\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3067\u304d\u306a\u3044\u3002<br \/>\n\u6709\u540d\u3060\u304b\u3089\u4f7f\u3063\u3066\u307f\u305f\u3051\u3069\u3001\u3053\u3093\u306a\u4f7f\u3044\u306b\u304f\u3044\u30d6\u30ed\u30b0\u306b\u3059\u308b\u3093\u3058\u3083\u306a\u304b\u3063\u305f\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Expressweb\u3092\u501f\u308a\u305f\u306f\u826f\u3044\u3051\u3069\u3001\u3088\u304f\u8003\u3048\u305f\u3089\u7279\u306b\u3084\u308a\u305f\u3044\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u306a\u304b\u3063\u305f\u306e\u3067\u3001 \u3042\u307e\u308a\u6df1\u304f\u8ffd\u6c42\u3057\u3066\u3053\u306a\u304b\u3063\u305f\u79c1\u3067\u3059\u304c\u3001\u4eca\u56de\u5c11\u3057\u8e0f\u307f\u8fbc\u3093\u3067DB\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u305d\u308c\u306b\u3057\u3066\u3082Expressweb\u306b\u7528\u610f\u3055\u308c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[19,18],"class_list":{"0":"post-185","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-pc","8":"tag-asp-net","9":"tag-sqlserver"},"_links":{"self":[{"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":18,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions\/207"}],"wp:attachment":[{"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yujiro.work\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}