{"id":135385,"date":"2024-10-31T10:13:28","date_gmt":"2024-10-31T02:13:28","guid":{"rendered":"https:\/\/server.hk\/cnblog\/135385\/"},"modified":"2024-10-31T10:13:28","modified_gmt":"2024-10-31T02:13:28","slug":"sql-server-2005%e5%bf%ab%e7%85%a7%e8%88%87%e6%9f%a5%e8%a9%a2%e7%9a%84%e4%bd%bf%e7%94%a8%e5%a0%b4%e6%99%af","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/135385\/","title":{"rendered":"SQL Server 2005\u5feb\u7167\u8207\u67e5\u8a62\u7684\u4f7f\u7528\u5834\u666f"},"content":{"rendered":"<h1 id=\"sql-server-2005%e5%bf%ab%e7%85%a7%e8%88%87%e6%9f%a5%e8%a9%a2%e7%9a%84%e4%bd%bf%e7%94%a8%e5%a0%b4%e6%99%af-MOAEzviySi\">SQL Server 2005\u5feb\u7167\u8207\u67e5\u8a62\u7684\u4f7f\u7528\u5834\u666f<\/h1>\n<p>\u5728\u8cc7\u6599\u5eab\u7ba1\u7406\u4e2d\uff0cSQL Server 2005\u63d0\u4f9b\u4e86\u591a\u7a2e\u529f\u80fd\u4f86\u63d0\u5347\u8cc7\u6599\u7684\u53ef\u7528\u6027\u548c\u67e5\u8a62\u6548\u7387\u3002\u5176\u4e2d\uff0c\u5feb\u7167\uff08Snapshot\uff09\u548c\u67e5\u8a62\uff08Query\uff09\u662f\u5169\u500b\u91cd\u8981\u7684\u6982\u5ff5\uff0c\u80fd\u5920\u5e6b\u52a9\u7528\u6236\u5728\u4e0d\u540c\u7684\u4f7f\u7528\u5834\u666f\u4e2d\u7372\u5f97\u6700\u4f73\u7684\u6027\u80fd\u548c\u6578\u64da\u4e00\u81f4\u6027\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afsql-server%e5%bf%ab%e7%85%a7%ef%bc%9f-MOAEzviySi\">\u4ec0\u9ebc\u662fSQL Server\u5feb\u7167\uff1f<\/h2>\n<p>SQL Server\u5feb\u7167\u662f\u4e00\u7a2e\u7528\u65bc\u5275\u5efa\u8cc7\u6599\u5eab\u7684\u53ea\u8b80\u526f\u672c\u7684\u6280\u8853\u3002\u5b83\u5141\u8a31\u7528\u6236\u5728\u67d0\u4e00\u7279\u5b9a\u6642\u9593\u9ede\u67e5\u770b\u8cc7\u6599\u5eab\u7684\u72c0\u614b\uff0c\u800c\u4e0d\u6703\u5f71\u97ff\u5230\u4e3b\u8cc7\u6599\u5eab\u7684\u64cd\u4f5c\u3002\u5feb\u7167\u7684\u4e3b\u8981\u512a\u52e2\u5728\u65bc\u5b83\u80fd\u5920\u63d0\u4f9b\u4e00\u500b\u7a69\u5b9a\u7684\u8996\u5716\uff0c\u7279\u5225\u662f\u5728\u9032\u884c\u9577\u6642\u9593\u904b\u884c\u7684\u67e5\u8a62\u6642\u3002<\/p>\n<h2 id=\"%e5%bf%ab%e7%85%a7%e7%9a%84%e4%bd%bf%e7%94%a8%e5%a0%b4%e6%99%af-MOAEzviySi\">\u5feb\u7167\u7684\u4f7f\u7528\u5834\u666f<\/h2>\n<ul>\n<li><strong>\u5831\u544a\u751f\u6210\uff1a<\/strong>\u5728\u751f\u6210\u5831\u544a\u6642\uff0c\u4f7f\u7528\u5feb\u7167\u53ef\u4ee5\u78ba\u4fdd\u5831\u544a\u4e2d\u7684\u6578\u64da\u5728\u67e5\u8a62\u904e\u7a0b\u4e2d\u4e0d\u6703\u8b8a\u52d5\uff0c\u5f9e\u800c\u63d0\u9ad8\u5831\u544a\u7684\u6e96\u78ba\u6027\u3002<\/li>\n<li><strong>\u6578\u64da\u6062\u5fa9\uff1a<\/strong>\u5982\u679c\u5728\u9032\u884c\u6578\u64da\u64cd\u4f5c\u6642\u51fa\u73fe\u932f\u8aa4\uff0c\u5feb\u7167\u53ef\u4ee5\u4f5c\u70ba\u4e00\u500b\u6062\u5fa9\u9ede\uff0c\u5e6b\u52a9\u7528\u6236\u56de\u5230\u4e4b\u524d\u7684\u72c0\u614b\u3002<\/li>\n<li><strong>\u6e2c\u8a66\u74b0\u5883\uff1a<\/strong>\u958b\u767c\u4eba\u54e1\u53ef\u4ee5\u5229\u7528\u5feb\u7167\u4f86\u5275\u5efa\u6e2c\u8a66\u74b0\u5883\uff0c\u9032\u884c\u529f\u80fd\u6e2c\u8a66\u800c\u4e0d\u5f71\u97ff\u751f\u7522\u74b0\u5883\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e5%89%b5%e5%bb%ba%e5%bf%ab%e7%85%a7-MOAEzviySi\">\u5982\u4f55\u5275\u5efa\u5feb\u7167<\/h2>\n<p>\u5728SQL Server 2005\u4e2d\uff0c\u5275\u5efa\u5feb\u7167\u7684\u57fa\u672c\u8a9e\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre><code>CREATE DATABASE YourDatabaseName_Snapshot\nAS SNAPSHOT OF YourDatabaseName;<\/code><\/pre>\n<p>\u9019\u6bb5\u4ee3\u78bc\u5c07\u5275\u5efa\u4e00\u500b\u540d\u70baYourDatabaseName_Snapshot\u7684\u5feb\u7167\uff0c\u8a72\u5feb\u7167\u662fYourDatabaseName\u8cc7\u6599\u5eab\u7684\u53ea\u8b80\u526f\u672c\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e6%9f%a5%e8%a9%a2%ef%bc%9f-MOAEzviySi\">\u4ec0\u9ebc\u662f\u67e5\u8a62\uff1f<\/h2>\n<p>\u67e5\u8a62\u662f\u7528\u65bc\u5f9e\u8cc7\u6599\u5eab\u4e2d\u6aa2\u7d22\u6578\u64da\u7684\u8acb\u6c42\u3002SQL Server 2005\u652f\u6301\u591a\u7a2e\u67e5\u8a62\u8a9e\u6cd5\uff0c\u5305\u62ecSELECT\u3001INSERT\u3001UPDATE\u548cDELETE\u7b49\u3002\u67e5\u8a62\u7684\u6548\u7387\u548c\u6027\u80fd\u5c0d\u65bc\u8cc7\u6599\u5eab\u7684\u6574\u9ad4\u904b\u884c\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<h2 id=\"%e6%9f%a5%e8%a9%a2%e7%9a%84%e4%bd%bf%e7%94%a8%e5%a0%b4%e6%99%af-MOAEzviySi\">\u67e5\u8a62\u7684\u4f7f\u7528\u5834\u666f<\/h2>\n<ul>\n<li><strong>\u6578\u64da\u6aa2\u7d22\uff1a<\/strong>\u67e5\u8a62\u662f\u7528\u6236\u5f9e\u8cc7\u6599\u5eab\u4e2d\u7372\u53d6\u6240\u9700\u6578\u64da\u7684\u4e3b\u8981\u65b9\u5f0f\uff0c\u7121\u8ad6\u662f\u55ae\u4e00\u8a18\u9304\u9084\u662f\u591a\u689d\u8a18\u9304\u3002<\/li>\n<li><strong>\u6578\u64da\u5206\u6790\uff1a<\/strong>\u901a\u904e\u8907\u96dc\u7684\u67e5\u8a62\uff0c\u5206\u6790\u5e2b\u53ef\u4ee5\u5f9e\u5927\u91cf\u6578\u64da\u4e2d\u63d0\u53d6\u6709\u50f9\u503c\u7684\u4fe1\u606f\uff0c\u652f\u6301\u696d\u52d9\u6c7a\u7b56\u3002<\/li>\n<li><strong>\u6578\u64da\u66f4\u65b0\uff1a<\/strong>\u67e5\u8a62\u4e0d\u50c5\u7528\u65bc\u6aa2\u7d22\u6578\u64da\uff0c\u9084\u53ef\u4ee5\u7528\u65bc\u66f4\u65b0\u8cc7\u6599\u5eab\u4e2d\u7684\u6578\u64da\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u53ca\u6642\u6027\u548c\u6e96\u78ba\u6027\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%9f%a5%e8%a9%a2%e6%80%a7%e8%83%bd%e5%84%aa%e5%8c%96-MOAEzviySi\">\u67e5\u8a62\u6027\u80fd\u512a\u5316<\/h2>\n<p>\u70ba\u4e86\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\uff0cSQL Server 2005\u63d0\u4f9b\u4e86\u591a\u7a2e\u512a\u5316\u6280\u8853\uff0c\u5305\u62ec\u7d22\u5f15\u3001\u67e5\u8a62\u8a08\u5283\u548c\u7d71\u8a08\u4fe1\u606f\u7b49\u3002\u4f7f\u7528\u7d22\u5f15\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u67e5\u8a62\u7684\u901f\u5ea6\uff0c\u7279\u5225\u662f\u5728\u8655\u7406\u5927\u91cf\u6578\u64da\u6642\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-MOAEzviySi\">\u7d50\u8ad6<\/h2>\n<p>SQL Server 2005\u7684\u5feb\u7167\u548c\u67e5\u8a62\u529f\u80fd\u70ba\u7528\u6236\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u6578\u64da\u7ba1\u7406\u9078\u64c7\u3002\u5feb\u7167\u80fd\u5920\u5728\u4e0d\u5f71\u97ff\u4e3b\u8cc7\u6599\u5eab\u7684\u60c5\u6cc1\u4e0b\u63d0\u4f9b\u7a69\u5b9a\u7684\u6578\u64da\u8996\u5716\uff0c\u800c\u67e5\u8a62\u5247\u662f\u6578\u64da\u6aa2\u7d22\u548c\u5206\u6790\u7684\u6838\u5fc3\u3002\u4e86\u89e3\u9019\u4e9b\u529f\u80fd\u7684\u4f7f\u7528\u5834\u666f\u548c\u6700\u4f73\u5be6\u8e10\uff0c\u5c07\u6709\u52a9\u65bc\u7528\u6236\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u5229\u7528\u5176\u8cc7\u6599\u5eab\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc<code><a href=\"https:\/\/server.hk\">VPS<\/a><\/code>\u548c<code><a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a><\/code>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22SQL Server 2005\u5feb\u7167\u8207\u67e5\u8a62\u7684\u4f7f\u7528\u5834\u666f\uff0c\u4e86\u89e3\u5982\u4f55\u63d0\u5347\u6578\u64da\u67e5\u8a62\u6548\u7387\u8207\u6578\u64da\u4e00\u81f4\u6027\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-135385","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/135385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=135385"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/135385\/revisions"}],"predecessor-version":[{"id":135386,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/135385\/revisions\/135386"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=135385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=135385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=135385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}