{"id":394,"date":"2009-02-09T11:42:36","date_gmt":"2009-02-09T03:42:36","guid":{"rendered":""},"modified":"2014-03-11T21:57:32","modified_gmt":"2014-03-11T13:57:32","slug":"%e5%8a%a8%e7%bd%91access%e7%89%88%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2009\/02\/09\/394.htm","title":{"rendered":"\u52a8\u7f51ACCESS\u7248\u81ea\u52a8\u5907\u4efd"},"content":{"rendered":"<p style=\"line-height: 150%\">\u4e0d\u8fc7\u4ece6.0\u5f00\u59cb\u6211\u5c31\u5df2\u7ecf\u5728\u7528SQL\u7248\u4e86\uff0c\u6240\u4ee5\u6ca1\u600e\u4e48\u5173\u5fc3ACCESS\u7248\u7684\u6570\u636e\u5907\u4efd\u95ee\u9898\uff0c\u4eca\u5929\u4e0a\u52a8\u7f51\u627e\u4e86\u627e\uff0c\u8fd8\u771f\u6709\u4eba\u5199\u4e86\uff0c\u6548\u679c\u5982\u4f55\u8fd8\u4e0d\u77e5\u9053\uff0c\u8bd5\u8bd5\u770b\u597d\u4e86\u3002<br \/>\n\u5176\u5927\u610f\u662f\u5728\u8bba\u575b\u4ea7\u751f\u65b0\u4e00\u5929\u91cd\u7b97\u7684\u4e8b\u4ef6\u4e2d\uff0c\u52a0\u5165\u7528\u4e8e\u6587\u4ef6\u64cd\u4f5c\u7684\u4ee3\u7801\uff0c\u628a\u6307\u5b9a\u7684\u6587\u4ef6\u8fdb\u884c\u53e6\u5b58\u3002\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>1.&nbsp;\u4fee\u6539inc\/dv_clsmain.asp\u3002<br \/>\n\u627e\u5230Public&nbsp;Sub&nbsp;ReloadAllForumInfo()\uff0c\u5728ReloadSetupCache&nbsp;TempStr,15\u4e4b\u540e\u52a0\u5165\uff1a<\/p>\n<p>&nbsp;<\/p>\n<div class=\"code_head\">\n<div class=\"HtmlCode\" title=\"\u70b9\u51fb\u8fd0\u884c\u8be5\u4ee3\u7801\uff01\" onclick=\"preWin=window.open('','','');preWin.document.open();preWin.document.write(this.innerText);preWin.document.close();\" style=\"cursor: pointer\">\n<div class=\"code_head\">\u7a0b\u5e8f\u4ee3\u7801\uff1a<\/div>\n<div class=\"code_main\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;\u5907\u4efd\u6570\u636e\u5e93<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;backupdaly()<\/div>\n<\/div>\n<\/div>\n<p>2\u3001\u5728\u8be5\u6587\u4ef6\u7684\u5c3e\u90e8\u52a0\u5165\uff1a<br \/>\n&nbsp;<\/p>\n<div class=\"code_head\">\n<div class=\"HtmlCode\" title=\"\u70b9\u51fb\u8fd0\u884c\u8be5\u4ee3\u7801\uff01\" onclick=\"preWin=window.open('','','');preWin.document.open();preWin.document.write(this.innerText);preWin.document.close();\" style=\"cursor: pointer\">\n<div class=\"code_head\">\u7a0b\u5e8f\u4ee3\u7801\uff1a<\/div>\n<div class=\"code_main\">Public&nbsp;sub&nbsp;backupdaly()<br \/>\n&nbsp;&nbsp;Dim&nbsp;Dbpath,Bkfolder,BkDbname,Fso<br \/>\n&nbsp;&nbsp;Dbpath=&quot;data\/Dvbbs7.mdb&quot;<br \/>\n&nbsp;&nbsp;Dbpath=server.mappath(Dbpath)<br \/>\n&nbsp;&nbsp;bkfolder=&quot;databackup&quot;<br \/>\n&nbsp;&nbsp;bkfolder=server.mappath(bkfolder)<br \/>\n&nbsp;&nbsp;bkdbname=&quot;Backup&quot;&amp;year(now())&amp;&quot;_&quot;&amp;month(now())&amp;&quot;_&quot;&amp;day(now())&amp;&quot;.mdb&quot;<br \/>\n&nbsp;&nbsp;Set&nbsp;Fso=server.createobject(&quot;scripting.filesystemobject&quot;)<br \/>\n&nbsp;&nbsp;&#8216;\u751f\u6210\u65b0\u7684\u5907\u4efd\u6587\u4ef6<br \/>\n&nbsp;&nbsp;if&nbsp;fso.fileexists(dbpath)&nbsp;then<br \/>\n&nbsp;&nbsp;&nbsp;fso.copyfile&nbsp;dbpath,bkfolder&amp;&nbsp;&quot;\\&quot;&amp;&nbsp;bkdbname<br \/>\n&nbsp;&nbsp;End&nbsp;if<br \/>\n&nbsp;&nbsp;&#8216;\u5220\u9664\u65e7\u7684\u5907\u4efd\u6587\u4ef6<br \/>\n&nbsp;&nbsp;bkdbname=&quot;Backup&quot;&amp;year(now())&amp;&quot;_&quot;&amp;month(now())&amp;&quot;_&quot;&amp;day(now())-3&amp;&quot;.mdb&quot;&nbsp;&#8216;\u8bbe\u5b9a\u4e3a\u4fdd\u75593\u5929\u7684\u5907\u4efd\uff0c\u6839\u636e\u81ea\u5df1\u7684\u7a7a\u95f4\u8bbe\u5b9aday\u540e\u9762\u51cf\u53bb\u7684\u5929\u6570<br \/>\n&nbsp;&nbsp;if&nbsp;objFSO.fileExists(Server.MapPath(bkfolder&amp;&nbsp;&quot;\\&quot;&amp;&nbsp;bkdbname))&nbsp;then<br \/>\n&nbsp;&nbsp;&nbsp;objFSO.DeleteFile(Server.MapPath(bkfolder&amp;&nbsp;&quot;\\&quot;&amp;&nbsp;bkdbname))<br \/>\n&nbsp;&nbsp;end&nbsp;if<br \/>\nEnd&nbsp;Sub<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u8fc7\u4ece6.0\u5f00\u59cb\u6211\u5c31\u5df2\u7ecf\u5728\u7528SQL\u7248\u4e86\uff0c\u6240\u4ee5\u6ca1\u600e\u4e48\u5173\u5fc3ACCESS\u7248\u7684\u6570\u636e\u5907\u4efd\u95ee\u9898\uff0c\u4eca\u5929\u4e0a\u52a8\u7f51\u627e\u4e86\u627e\uff0c\u8fd8\u771f\u6709\u4eba\u5199\u4e86\uff0c\u6548\u679c\u5982\u4f55\u8fd8\u4e0d\u77e5\u9053\uff0c\u8bd5\u8bd5\u770b\u597d\u4e86\u3002 \u5176\u5927\u610f\u662f\u5728\u8bba\u575b\u4ea7\u751f\u65b0\u4e00\u5929\u91cd\u7b97\u7684\u4e8b\u4ef6\u4e2d\uff0c\u52a0\u5165\u7528\u4e8e\u6587\u4ef6\u64cd\u4f5c\u7684\u4ee3\u7801\uff0c\u628a\u6307\u5b9a\u7684\u6587\u4ef6\u8fdb\u884c\u53e6\u5b58\u3002\u65b9\u6cd5\u5982\u4e0b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-394","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":66271,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/394\/revisions\/66271"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=394"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}