把位置http://sharepointweb2/的文档库通过stsadm backup/restore迁移到http://sharepointweb2/sites/doc后,有部分文件夹无法打开,报在取ContentTypeOrder时出错,查原因后确定是SharePoint的BUG,其在迁移的时候计算表AllDocs中的列CToOffset的值时出错,我们可以写一个SQL语句来修复这个错误。
如
http://server/sites/testsite1/Shared Documents/testfolder
------
Update alldocs Set ctooffset=ctooffset+32 Where dirname='sites/testsite1/Shared Documents' and LeafName='testfolder'
至于ctooffset加多少,得看情况了,如在上面的例子中,一般来说,我们加上len('sites/testsite1/Shared Documents')就可以了
下面这个是我参考过的一个网页:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1132619&SiteID=17
如
http://server/sites/testsite1/Shared Documents/testfolder
------
Update alldocs Set ctooffset=ctooffset+32 Where dirname='sites/testsite1/Shared Documents' and LeafName='testfolder'
至于ctooffset加多少,得看情况了,如在上面的例子中,一般来说,我们加上len('sites/testsite1/Shared Documents')就可以了
下面这个是我参考过的一个网页:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1132619&SiteID=17
浙公网安备 33010602011771号