惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
The Cloudflare Blog
T
Tailwind CSS Blog
H
Help Net Security
腾讯CDC
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
C
Check Point Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - Peter Wang

SharePoint 备忘录 Different users – Calendar Audience Targeting Guide SharePoint 2010 Audit log report SharePoint workspace 2010同步功能 SharePoint 2010 bug sharepoint 引用不起作用 整合Bing Maps silverlight performance tip DotNet软件测试实战技术 VSTS 架构版share 敏捷开发中的项目管理利器-Mingle Castle揭密2----IOC(1) Castle揭密2----IOC(3) Castle揭密2----IOC(2) Castle揭密1--前言 概念回顾--MDA 概念回顾---中间件(IDC) 实现Web Service依赖倒置 SQL Server 索引结构及其使用(四) SQL Server 索引结构及其使用(三)
查找ContentType的依赖项
Peter Wang · 2010-12-09 · via 博客园 - Peter Wang

SharePoint中ConentType有时候删除不掉,一定是被哪些内容依赖。有些时候很抓狂,自认为删掉了所有的依赖项,但还是不能删除。只好直接去db查找content type的依赖项.找到内容库的ContentTypeUsage,发现ContentTypeId是varbinary内容。使用fn_varbintohexstr函数进行转换,sql语句如下。

SELECT  SiteId, sys.fn_varbintohexstr(ContentTypeId) AS ID, WebId, ListId, IsFieldId, Class
FROM    ContentTypeUsage
WHERE   (sys.fn_varbintohexstr(ContentTypeId) LIKE '0x01004d5a79bafa4a4576b79c56ff3d0d662d%')

找到对应的依赖项后,解除依赖或删除对应的依赖项,然后再删除此content type。