{"id":1326,"date":"2006-12-21T18:46:22","date_gmt":"2006-12-21T10:46:22","guid":{"rendered":"https:\/\/www.ecjtu.com\/keith\/archives\/1326"},"modified":"2006-12-26T16:06:20","modified_gmt":"2006-12-26T08:06:20","slug":"%e5%a6%82%e4%bd%95%e6%81%a2%e5%a4%8d%e4%bf%ae%e5%a4%8dms-sql%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84mdf%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.ecjtu.com\/keith\/archives\/1326","title":{"rendered":"\u5982\u4f55\u6062\u590d\/\u4fee\u590dMS SQL\u6570\u636e\u5e93\u7684MDF\u6587\u4ef6"},"content":{"rendered":"<p>\u5982\u679c\u5907\u4efd\u7684\u6570\u636e\u5e93\u67092\u4e2a\u6587\u4ef6\uff0c\u5206\u522b\u662f.LDF \u548c .MDF\uff0c\u6253\u5f00\u4f01\u4e1a\u7ba1\u7406\u5668\uff0c\u5728\u5b9e\u4f8b\u4e0a\u53f3\u51fb\uff0d\uff0d\uff0d\u6240\u6709\u4efb\u52a1\uff0d\uff0d\u9644\u52a0\u6570\u636e\u5e93\uff0c\u7136\u540e\u9009\u62e9\u90a3\u4e2a.MDF\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\n\u6216\u8005\u5728\u67e5\u8be2\u5206\u6790\u5668\u4e2d\u8f93\u5165\uff1a<\/p>\n<p>sp_attach_db &#8220;\u6570\u636e\u5e93\u540d\u79f0&#8221;,&#8221;\u8def\u5f84\\\u6587\u4ef6\u540d.ldf&#8221;,&#8221;\u8def\u5f84\\\u6587\u4ef6\u540d.MDF&#8221;<\/p>\n<p>SQL Server\u6570\u636e\u5e93\u5907\u4efd\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f\u4f7f\u7528BACKUP DATABASE\u5c06\u6570\u636e\u5e93\u6587\u4ef6\u5907\u4efd\u51fa\u53bb\uff0c\u53e6\u5916\u4e00\u79cd\u5c31\u662f\u76f4\u63a5\u62f7\u8d1d\u6570\u636e\u5e93\u6587\u4ef6mdf\u548c\u65e5\u5fd7\u6587\u4ef6ldf\u7684\u65b9\u5f0f\u3002\u4e0b\u9762\u5c06\u4e3b\u8981\u8ba8\u8bba\u4e00\u4e0b\u540e\u8005\u7684\u5907\u4efd\u4e0e\u6062\u590d\u3002\u672c\u6587\u5047\u5b9a\u60a8 \u80fd\u719f\u7ec3\u4f7f\u7528SQL Server Enterprise Manager(SQL Server\u4f01\u4e1a\u7ba1\u7406\u5668)\u548cSQL Server Quwey Analyser(SQL Server\u67e5\u8be2\u5206\u6790\u5668)<\/p>\n<p>1\u3001\u6b63\u5e38\u7684\u5907\u4efd\u3001\u6062\u590d\u65b9\u5f0f<br \/>\n\u6b63\u5e38\u65b9\u5f0f\u4e0b\uff0c\u6211\u4eec\u8981\u5907\u4efd\u4e00\u4e2a\u6570\u636e\u5e93\uff0c\u9996\u5148\u8981\u5148\u5c06\u8be5\u6570\u636e\u5e93\u4ece\u8fd0\u884c\u7684\u6570\u636e\u670d\u52a1\u5668\u4e2d\u65ad\u5f00\uff0c\u6216\u8005\u505c\u6389\u6574\u4e2a\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u7136\u540e\u590d\u5236\u6587\u4ef6\u3002<br \/>\n\u5378\u4e0b\u6570\u636e\u5e93\u7684\u547d\u4ee4\uff1aSp_detach_db \u6570\u636e\u5e93\u540d<br \/>\n\u8fde\u63a5\u6570\u636e\u5e93\u7684\u547d\u4ee4\uff1aSp_attach_db\u6216\u8005sp_attach_single_file_db<br \/>\ns_attach_db [@dbname =] &#8216;dbname&#8217;, [@filename1 =] &#8216;filename_n&#8217; [,&#8230;16]<br \/>\nsp_attach_single_file_db [@dbname =] &#8216;dbname&#8217;, [@physname =] &#8216;physical_name&#8217;<br \/>\n\u4f7f\u7528\u6b64\u65b9\u6cd5\u53ef\u4ee5\u6b63\u786e\u6062\u590dSQL Sever7.0\u548cSQL Server 2000\u7684\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u8981\u70b9\u662f\u5907\u4efd\u7684\u65f6\u5019\u4e00\u5b9a\u8981\u5c06mdf\u548cldf\u4e24\u4e2a\u6587\u4ef6\u90fd\u5907\u4efd\u4e0b\u6765\uff0cmdf\u6587\u4ef6\u662f\u6570\u636e\u5e93\u6570\u636e\u6587\u4ef6\uff0cldf\u662f\u6570\u636e\u5e93\u65e5\u5fd7\u6587\u4ef6\u3002<br \/>\n\u4f8b\u5b50\uff1a<br \/>\n\u5047\u8bbe\u6570\u636e\u5e93\u4e3atest\uff0c\u5176\u6570\u636e\u6587\u4ef6\u4e3atest_data.mdf\uff0c\u65e5\u5fd7\u6587\u4ef6\u4e3atest_log.ldf\u3002\u4e0b\u9762\u6211\u4eec\u8ba8\u8bba\u4e00\u4e0b\u5982\u4f55\u5907\u4efd\u3001\u6062\u590d\u8be5\u6570\u636e\u5e93\u3002<br \/>\n\u5378\u4e0b\u6570\u636e\u5e93\uff1asp_detach_db &#8216;test&#8217;<br \/>\n\u8fde \u63a5\u6570\u636e\u5e93\uff1asp_attach_db &#8216;test&#8217;,&#8217;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\Data\\test_data.mdf&#8217;,&#8217;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\Data\\test_log.ldf&#8217;<br \/>\nsp_attach_single_file_db &#8216;test&#8217;,&#8217;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\Data\\test_data.mdf&#8217;<br \/>\n\/\/ \u672c\u6587\u8f6c\u81ea C++Builder \u7814\u7a76 &#8211; <a title=\"http:\/\/www.ccrun.com\/article.asp?i=986&amp;d=oxit07\" href=\"http:\/\/www.ccrun.com\/article.asp?i=986&amp;d=oxit07\" target=\"_blank\">http:\/\/www.ccrun.com\/article.asp?i=986&amp;d=oxit07<\/a><\/p>\n<p>2\u3001\u53ea\u6709mdf\u6587\u4ef6\u7684\u6062\u590d\u6280\u672f<br \/>\n\u7531\u4e8e\u79cd\u79cd\u539f\u56e0\uff0c\u6211\u4eec\u5982\u679c\u5f53\u65f6\u4ec5\u4ec5\u5907\u4efd\u4e86mdf\u6587\u4ef6\uff0c\u90a3\u4e48\u6062\u590d\u8d77\u6765\u5c31\u662f\u4e00\u4ef6\u5f88\u9ebb\u70e6\u7684\u4e8b\u60c5\u4e86\u3002<br \/>\n\u5982\u679c\u60a8\u7684mdf\u6587\u4ef6\u662f\u5f53\u524d\u6570\u636e\u5e93\u4ea7\u751f\u7684\uff0c\u90a3\u4e48\u5f88\u4fa5\u5e78\uff0c\u4e5f\u8bb8\u4f60\u4f7f\u7528sp_attach_db\u6216\u8005sp_attach_single_file_db\u53ef\u4ee5\u6062\u590d\u6570\u636e\u5e93\uff0c\u4f46\u662f\u4f1a\u51fa\u73b0\u7c7b\u4f3c\u4e0b\u9762\u7684\u63d0\u793a\u4fe1\u606f<br \/>\n\u8bbe\u5907\u6fc0\u6d3b\u9519\u8bef\u3002\u7269\u7406\u6587\u4ef6\u540d &#8216;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\data\\test_Log.LDF&#8217; \u53ef\u80fd\u6709\u8bef\u3002<br \/>\n\u5df2\u521b\u5efa\u540d\u4e3a &#8216;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\Data\\test_log.LDF&#8217; \u7684\u65b0\u65e5\u5fd7\u6587\u4ef6\u3002<br \/>\n\u4f46\u662f\uff0c\u5982\u679c\u60a8\u7684\u6570\u636e\u5e93\u6587\u4ef6\u662f\u4ece\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\u590d\u5236\u8fc7\u6765\u7684\uff0c\u90a3\u4e48\u5f88\u4e0d\u5e78\uff0c\u4e5f\u8bb8\u4e0a\u8ff0\u529e\u6cd5\u5c31\u884c\u4e0d\u901a\u4e86\u3002\u4f60\u4e5f\u8bb8\u4f1a\u5f97\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u9519\u8bef\u4fe1\u606f<br \/>\n\u670d\u52a1\u5668: \u6d88\u606f 1813\uff0c\u7ea7\u522b 16\uff0c\u72b6\u6001 2\uff0c\u884c 1<br \/>\n\u672a\u80fd\u6253\u5f00\u65b0\u6570\u636e\u5e93 &#8216;test&#8217;\u3002CREATE DATABASE \u5c06\u7ec8\u6b62\u3002<br \/>\n\u8bbe\u5907\u6fc0\u6d3b\u9519\u8bef\u3002\u7269\u7406\u6587\u4ef6\u540d &#8216;d:\\test_log.LDF&#8217; \u53ef\u80fd\u6709\u8bef\u3002<br \/>\n\u600e\u4e48\u529e\u5462\uff1f\u522b\u7740\u6025\uff0c\u4e0b\u9762\u6211\u4eec\u4e3e\u4f8b\u8bf4\u660e\u6062\u590d\u529e\u6cd5\u3002<br \/>\nA\uff0e\u6211\u4eec\u4f7f\u7528\u9ed8\u8ba4\u65b9\u5f0f\u5efa\u7acb\u4e00\u4e2a\u4f9b\u6062\u590d\u4f7f\u7528\u7684\u6570\u636e\u5e93(\u5982test)\u3002\u53ef\u4ee5\u5728SQL Server Enterprise Manager\u91cc\u9762\u5efa\u7acb\u3002<br \/>\nB\uff0e\u505c\u6389\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002<br \/>\nC\uff0e\u5c06\u521a\u624d\u751f\u6210\u7684\u6570\u636e\u5e93\u7684\u65e5\u5fd7\u6587\u4ef6test_log.ldf\u5220\u9664\uff0c\u7528\u8981\u6062\u590d\u7684\u6570\u636e\u5e93mdf\u6587\u4ef6\u8986\u76d6\u521a\u624d\u751f\u6210\u7684\u6570\u636e\u5e93\u6570\u636e\u6587\u4ef6test_data.mdf\u3002<br \/>\nD\uff0e\u542f\u52a8\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002\u6b64\u65f6\u4f1a\u770b\u5230\u6570\u636e\u5e93test\u7684\u72b6\u6001\u4e3a\u201c\u7f6e\u7591\u201d\u3002\u8fd9\u65f6\u5019\u4e0d\u80fd\u5bf9\u6b64\u6570\u636e\u5e93\u8fdb\u884c\u4efb\u4f55\u64cd\u4f5c\u3002<br \/>\nE\uff0e\u8bbe\u7f6e\u6570\u636e\u5e93\u5141\u8bb8\u76f4\u63a5\u64cd\u4f5c\u7cfb\u7edf\u8868\u3002\u6b64\u64cd\u4f5c\u53ef\u4ee5\u5728SQL Server Enterprise Manager\u91cc\u9762\u9009\u62e9\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u6309\u53f3\u952e\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u5728\u201c\u670d\u52a1\u5668\u8bbe\u7f6e\u201d\u9875\u9762\u4e2d\u5c06\u201c\u5141\u8bb8\u5bf9\u7cfb\u7edf\u76ee\u5f55\u76f4\u63a5\u4fee\u6539\u201d\u4e00\u9879\u9009\u4e2d\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u8bed\u53e5\u6765\u5b9e\u73b0\u3002<br \/>\n\/*<\/p>\n<p>*\/<br \/>\nuse master<br \/>\ngo<br \/>\nsp_configure &#8216;allow updates&#8217;,1<br \/>\ngo<br \/>\nreconfigure with override<br \/>\ngo<br \/>\nF\uff0e\u8bbe\u7f6etest\u4e3a\u7d27\u6025\u4fee\u590d\u6a21\u5f0f<br \/>\nupdate sysdatabases set status=-32768 where dbid=DB_ID(&#8216;test&#8217;)<br \/>\n\u6b64\u65f6\u53ef\u4ee5\u5728SQL Server Enterprise Manager\u91cc\u9762\u770b\u5230\u8be5\u6570\u636e\u5e93\u5904\u4e8e\u201c\u53ea\u8bfb\\\u7f6e\u7591\\\u8131\u673a\\\u7d27\u6025\u6a21\u5f0f\u201d\u53ef\u4ee5\u770b\u5230\u6570\u636e\u5e93\u91cc\u9762\u7684\u8868\uff0c\u4f46\u662f\u4ec5\u4ec5\u6709\u7cfb\u7edf\u8868<br \/>\nG\uff0e\u4e0b\u9762\u6267\u884c\u771f\u6b63\u7684\u6062\u590d\u64cd\u4f5c\uff0c\u91cd\u5efa\u6570\u636e\u5e93\u65e5\u5fd7\u6587\u4ef6<br \/>\ndbcc rebuild_log(&#8216;test&#8217;,&#8217;C:\\Program Files\\Microsoft SQL Server\\MSSQL\\Data\\test_log.ldf&#8217;)<br \/>\n\u6267\u884c\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u9047\u5230\u4e0b\u5217\u63d0\u793a\u4fe1\u606f\uff1a<br \/>\n\u670d\u52a1\u5668: \u6d88\u606f 5030\uff0c\u7ea7\u522b 16\uff0c\u72b6\u6001 1\uff0c\u884c 1<br \/>\n\u672a\u80fd\u6392\u5b83\u5730\u9501\u5b9a\u6570\u636e\u5e93\u4ee5\u6267\u884c\u8be5\u64cd\u4f5c\u3002<br \/>\nDBCC \u6267\u884c\u5b8c\u6bd5\u3002\u5982\u679c DBCC \u8f93\u51fa\u4e86\u9519\u8bef\u4fe1\u606f\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002<br \/>\n\u8bf4\u660e\u60a8\u7684\u5176\u4ed6\u7a0b\u5e8f\u6b63\u5728\u4f7f\u7528\u8be5\u6570\u636e\u5e93\uff0c\u5982\u679c\u521a\u624d\u60a8\u5728F\u6b65\u9aa4\u4e2d\u4f7f\u7528SQL Server Enterprise Manager\u6253\u5f00\u4e86test\u5e93\u7684\u7cfb\u7edf\u8868\uff0c\u90a3\u4e48\u9000\u51faSQL Server Enterprise Manager\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\n\u6b63\u786e\u6267\u884c\u5b8c\u6210\u7684\u63d0\u793a\u5e94\u8be5\u7c7b\u4f3c\u4e8e\uff1a<br \/>\n\u8b66\u544a: \u6570\u636e\u5e93 &#8216;test&#8217; \u7684\u65e5\u5fd7\u5df2\u91cd\u5efa\u3002\u5df2\u5931\u53bb\u4e8b\u52a1\u7684\u4e00\u81f4\u6027\u3002\u5e94\u8fd0\u884c DBCC CHECKDB \u4ee5\u9a8c\u8bc1\u7269\u7406\u4e00\u81f4\u6027\u3002\u5c06\u5fc5\u987b\u91cd\u7f6e\u6570\u636e\u5e93\u9009\u9879\uff0c\u5e76\u4e14\u53ef\u80fd\u9700\u8981\u5220\u9664\u591a\u4f59\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<br \/>\nDBCC \u6267\u884c\u5b8c\u6bd5\u3002\u5982\u679c DBCC \u8f93\u51fa\u4e86\u9519\u8bef\u4fe1\u606f\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002<br \/>\n\u6b64\u65f6\u6253\u5f00\u5728SQL Server Enterprise Manager\u91cc\u9762\u4f1a\u770b\u5230\u6570\u636e\u5e93\u7684\u72b6\u6001\u4e3a\u201c\u53ea\u4f9bDBO\u4f7f\u7528\u201d\u3002\u6b64\u65f6\u53ef\u4ee5\u8bbf\u95ee\u6570\u636e\u5e93\u91cc\u9762\u7684\u7528\u6237\u8868\u4e86\u3002<br \/>\nH\uff0e\u9a8c\u8bc1\u6570\u636e\u5e93\u4e00\u81f4\u6027\uff08\u53ef\u7701\u7565\uff09<br \/>\ndbcc checkdb(&#8216;test&#8217;)<br \/>\n\u4e00\u822c\u6267\u884c\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>\nCHECKDB \u53d1\u73b0\u4e86 0 \u4e2a\u5206\u914d\u9519\u8bef\u548c 0 \u4e2a\u4e00\u81f4\u6027\u9519\u8bef\uff08\u5728\u6570\u636e\u5e93 &#8216;test&#8217; \u4e2d\uff09\u3002<br \/>\nDBCC \u6267\u884c\u5b8c\u6bd5\u3002\u5982\u679c DBCC \u8f93\u51fa\u4e86\u9519\u8bef\u4fe1\u606f\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002<br \/>\nI\uff0e\u8bbe\u7f6e\u6570\u636e\u5e93\u4e3a\u6b63\u5e38\u72b6\u6001<br \/>\nsp_dboption &#8216;test&#8217;,&#8217;dbo use only&#8217;,&#8217;false&#8217;<br \/>\n\u5982\u679c\u6ca1\u6709\u51fa\u9519\uff0c\u90a3\u4e48\u606d\u559c\uff0c\u73b0\u5728\u5c31\u53ef\u4ee5\u6b63\u5e38\u7684\u4f7f\u7528\u6062\u590d\u540e\u7684\u6570\u636e\u5e93\u5566\u3002<br \/>\nJ\uff0e\u6700\u540e\u4e00\u6b65\uff0c\u6211\u4eec\u8981\u5c06\u6b65\u9aa4E\u4e2d\u8bbe\u7f6e\u7684\u201c\u5141\u8bb8\u5bf9\u7cfb\u7edf\u76ee\u5f55\u76f4\u63a5\u4fee\u6539\u201d\u4e00\u9879\u6062\u590d\u3002\u56e0\u4e3a\u5e73\u65f6\u76f4\u63a5\u64cd\u4f5c\u7cfb\u7edf\u8868\u662f\u4e00\u4ef6\u6bd4\u8f83\u5371\u9669\u7684\u4e8b\u60c5\u3002\u5f53\u7136\uff0c\u6211\u4eec\u53ef\u4ee5\u5728SQL Server Enterprise Manager\u91cc\u9762\u6062\u590d\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u8bed\u53e5\u5b8c\u6210<br \/>\nsp_configure &#8216;allow updates&#8217;,0<br \/>\ngo<br \/>\nreconfigure with override<br \/>\ngo<\/p>\n<p>DBCC results for &#8216;x&#8217;.<br \/>\nDBCC results for &#8216;sysobjects&#8217;.<br \/>\nThere are 152 rows in 5 pages for object &#8216;sysobjects&#8217;.<br \/>\nDBCC results for &#8216;sysindexes&#8217;.<br \/>\nThere are 165 rows in 14 pages for object &#8216;sysindexes&#8217;.<br \/>\nDBCC results for &#8216;syscolumns&#8217;.<br \/>\nThere are 502 rows in 12 pages for object &#8216;syscolumns&#8217;.<br \/>\nDBCC results for &#8216;systypes&#8217;.<br \/>\nThere are 26 rows in 1 pages for object &#8216;systypes&#8217;.<br \/>\nDBCC results for &#8216;syscomments&#8217;.<br \/>\nThere are 182 rows in 14 pages for object &#8216;syscomments&#8217;.<br \/>\nDBCC results for &#8216;sysfiles1&#8217;.<br \/>\nThere are 2 rows in 1 pages for object &#8216;sysfiles1&#8217;.<br \/>\nDBCC results for &#8216;syspermissions&#8217;.<br \/>\nThere are 50 rows in 1 pages for object &#8216;syspermissions&#8217;.<br \/>\nDBCC results for &#8216;sysusers&#8217;.<br \/>\nThere are 12 rows in 1 pages for object &#8216;sysusers&#8217;.<br \/>\nDBCC results for &#8216;sysproperties&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;sysproperties&#8217;.<br \/>\nDBCC results for &#8216;sysdepends&#8217;.<br \/>\nThere are 509 rows in 3 pages for object &#8216;sysdepends&#8217;.<br \/>\nDBCC results for &#8216;sysreferences&#8217;.<br \/>\nThere are 6 rows in 1 pages for object &#8216;sysreferences&#8217;.<br \/>\nDBCC results for &#8216;sysfulltextcatalogs&#8217;.<br \/>\nThere are 0 rows in 1 pages for object &#8216;sysfulltextcatalogs&#8217;.<br \/>\nDBCC results for &#8216;sysfulltextnotify&#8217;.<br \/>\nThere are 0 rows in 0 pages for object &#8216;sysfulltextnotify&#8217;.<br \/>\nDBCC results for &#8216;sysfilegroups&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;sysfilegroups&#8217;.<br \/>\nDBCC results for &#8216;LogForUserSystem&#8217;.<br \/>\nThere are 197355 rows in 2038 pages for object &#8216;LogForUserSystem&#8217;.<br \/>\nDBCC results for &#8216;ox_pics_cates&#8217;.<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:110) with values (BlockLayerID = 2 and BlockID = 447316 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447194) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:111) with values (BlockLayerID = 2 and BlockID = 447316 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447202) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:112) with values (BlockLayerID = 2 and BlockID = 447316 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447324) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:113) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447162) points to the data row identified by ().<br \/>\nThere are 1 rows in 1 pages for object &#8216;ox_pics_cates&#8217;.<br \/>\nDBCC results for &#8216;res_faces&#8217;.<br \/>\nThere are 81 rows in 1 pages for object &#8216;res_faces&#8217;.<br \/>\nDBCC results for &#8216;dtproperties&#8217;.<br \/>\nThere are 14 rows in 1 pages for object &#8216;dtproperties&#8217;.<br \/>\nDBCC results for &#8216;accounts&#8217;.<br \/>\nThere are 5962 rows in 173 pages for object &#8216;accounts&#8217;.<br \/>\nDBCC results for &#8216;ox_pics&#8217;.<br \/>\nThere are 7522 rows in 129 pages for object &#8216;ox_pics&#8217;.<br \/>\nDBCC results for &#8216;forum_msgs&#8217;.<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:114) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447164) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:115) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447167) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:116) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447169) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:117) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447171) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:118) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447179) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:119) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447181) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:120) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447185) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:121) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447192) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:122) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447204) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:123) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447215) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:124) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447218) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:125) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447251) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:126) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447298) points to the data row identified by ().<br \/>\nServer: Msg 8952, Level 16, State 1, Line 1<br \/>\nTable error: Database &#8216;x&#8217;, index &#8216;forum_msgs.IX_forum_msgs_for_0_layer_list&#8217; (ID 768721791) (index ID 6). Extra or invalid key for the keys:<br \/>\nServer: Msg 8956, Level 16, State 1, Line 1<br \/>\nIndex row (1:12894:127) with values (BlockLayerID = 2 and BlockID = 447318 and owner_board_name = &#8217;emotion.programmer&#8217; and MessageID = 447327) points to the data row identified by ().<br \/>\nThere are 446359 rows in 12198 pages for object &#8216;forum_msgs&#8217;.<br \/>\nCHECKDB found 0 allocation errors and 18 consistency errors in table &#8216;forum_msgs&#8217; (object ID 768721791).<br \/>\nDBCC results for &#8216;ox_pics_catepics&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;ox_pics_catepics&#8217;.<br \/>\nDBCC results for &#8216;ox_pics_accounts&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;ox_pics_accounts&#8217;.<br \/>\nDBCC results for &#8216;ox_bookmarks_byaccount&#8217;.<br \/>\nThere are 2626 rows in 21 pages for object &#8216;ox_bookmarks_byaccount&#8217;.<br \/>\nDBCC results for &#8216;link_tables_users&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;link_tables_users&#8217;.<br \/>\nDBCC results for &#8216;account_usergroups&#8217;.<br \/>\nThere are 1 rows in 1 pages for object &#8216;account_usergroups&#8217;.<br \/>\nDBCC results for &#8216;account_onlines&#8217;.<br \/>\nThere are 60 rows in 11 pages for object &#8216;account_onlines&#8217;.<br \/>\nDBCC results for &#8216;search_actions&#8217;.<br \/>\nThere are 2 rows in 1 pages for object &#8216;search_actions&#8217;.<br \/>\nDBCC results for &#8216;ox_webmsg_msgs&#8217;.<br \/>\nThere are 18791 rows in 220 pages for object &#8216;ox_webmsg_msgs&#8217;.<br \/>\nDBCC results for &#8216;event_logs&#8217;.<br \/>\nThere are 546155 rows in 6897 pages for object &#8216;event_logs&#8217;.<br \/>\nDBCC results for &#8216;forum_boards&#8217;.<br \/>\nThere are 28 rows in 1 pages for object &#8216;forum_boards&#8217;.<br \/>\nCHECKDB found 0 allocation errors and 18 consistency errors in database &#8216;x&#8217;.<br \/>\nrepair_fast is the minimum repair level for the errors found by DBCC CHECKDB (x ).<br \/>\nDBCC execution completed. If DBCC printed error messages, contact your system administrator.<\/p>\n<p>Trackback: <a title=\"http:\/\/tb.donews.net\/TrackBack.aspx?PostId=1092493\" href=\"http:\/\/tb.donews.net\/TrackBack.aspx?PostId=1092493\" target=\"_blank\">http:\/\/tb.donews.net\/TrackBack.aspx?PostId=1092493<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u5907\u4efd\u7684\u6570\u636e\u5e93\u67092\u4e2a\u6587\u4ef6\uff0c\u5206\u522b\u662f.LDF \u548c .MDF\uff0c\u6253\u5f00\u4f01\u4e1a\u7ba1\u7406\u5668\uff0c\u5728\u5b9e\u4f8b\u4e0a\u53f3\u51fb\uff0d\uff0d\uff0d\u6240\u6709\u4efb\u52a1\uff0d\uff0d\u9644\u52a0\u6570 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[464,137],"_links":{"self":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/1326"}],"collection":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/comments?post=1326"}],"version-history":[{"count":1,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/1326\/revisions"}],"predecessor-version":[{"id":1327,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/1326\/revisions\/1327"}],"wp:attachment":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/media?parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/categories?post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/tags?post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}