<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8451123064758809734.post1736554455225746577..comments</id><updated>2011-10-27T09:25:51.350-07:00</updated><category term='Personal'/><category term='Windows XP'/><category term='Visual Studio'/><category term='Windows 2003'/><category term='Differencing Disk'/><category term='SQL Server'/><category term='AJAX'/><category term='Oracle'/><category term='ASP.NET'/><category term='OS X'/><category term='Chrome'/><category term='Safari'/><category term='.net'/><category term='Apache'/><category term='Virtualization'/><category term='SSIS'/><category term='Weird Errors'/><category term='Mail'/><category term='Sharepoint 2007'/><category term='XSLT'/><category term='CSS'/><category term='Excel 2007'/><category term='Subversion'/><category term='TextEditors'/><category term='Health Analyzer'/><category term='OLE DB'/><category term='Troubleshooting'/><category term='SharePoint'/><category term='SPMetal'/><category term='SharePoint 2010'/><category term='IIS'/><category term='Reporting Services'/><category term='ADO.NET'/><category term='Claims Based Authentication'/><category term='Learning'/><category term='Rants'/><category term='SharePoint Designer 2010'/><category term='SEO'/><category term='Active Directory'/><category term='Database'/><category term='Stong Name'/><category term='HTML'/><category term='Tools'/><category term='Commerce Server'/><category term='SMO'/><category term='JavaScript'/><category term='Linq To SharePoint'/><category term='FBA'/><category term='Utilities'/><title type='text'>Comments on System.What?: Deleting content Types in Sharepoint 2007: A troub...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.tylerholmes.com/feeds/1736554455225746577/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html'/><author><name>Tyler Holmes</name><uri>http://www.blogger.com/profile/17433652947830098796</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_1fgwbJk7Clg/TLYBwzTYpLI/AAAAAAAAAAM/V36n7Dinl2s/S220/%5BMugShot-Cropped.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-9055558780208369227</id><published>2011-10-27T09:25:51.350-07:00</published><updated>2011-10-27T09:25:51.350-07:00</updated><title type='text'>Great Post. Really helped in solving the issue for...</title><content type='html'>Great Post. Really helped in solving the issue for me. Have referred your article in my blogs so that can share it with more people and help the community.&lt;br /&gt;http://community.zevenseas.com/Blogs/Geetanjali/Lists/Posts/Post.aspx?ID=4&lt;br /&gt;&lt;br /&gt;Keep up the good work. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/9055558780208369227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/9055558780208369227'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1319732751350#c9055558780208369227' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1387465461'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-1823019823767953430</id><published>2011-10-13T21:23:01.644-07:00</published><updated>2011-10-13T21:23:01.644-07:00</updated><title type='text'>Hey Josh,

I&amp;#39;m not sure what&amp;#39;s positive in...</title><content type='html'>Hey Josh,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure what&amp;#39;s positive in SP 2007 with power shell (although I know its available). It IS possible via the .NET API.&lt;br /&gt;&lt;br /&gt;As a last resort, consider opening Visual Studio.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Tyler</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1823019823767953430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1823019823767953430'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1318566181644#c1823019823767953430' title=''/><author><name>Tyler Holmes</name><uri>http://www.blogger.com/profile/17433652947830098796</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_1fgwbJk7Clg/TLYBwzTYpLI/AAAAAAAAAAM/V36n7Dinl2s/S220/%5BMugShot-Cropped.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-919913585'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-4187782252104399868</id><published>2011-10-13T13:08:25.561-07:00</published><updated>2011-10-13T13:08:25.561-07:00</updated><title type='text'>I have a site that has a large number of subsites ...</title><content type='html'>I have a site that has a large number of subsites and libraries under it.  I am trying to remove a content type from the site collection, but there are 6740 libraries(yes, really) that have the content type assigned to them.&lt;br /&gt;&lt;br /&gt;Is there a way to remove the content type on a mass scale from the libraries via Powershell for WSS/2007?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4187782252104399868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4187782252104399868'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1318536505561#c4187782252104399868' title=''/><author><name>Josh Gruberman</name><uri>http://jgrubermangmail.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-202982712'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-1936214367360143259</id><published>2011-06-13T12:26:53.670-07:00</published><updated>2011-06-13T12:26:53.670-07:00</updated><title type='text'>Is there any means to delete content types in SP 2...</title><content type='html'>Is there any means to delete content types in SP 2010?  The table in this query doesn&amp;#39;t exist and SharePoint Explorer does not exist for 2010.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1936214367360143259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1936214367360143259'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1307993213670#c1936214367360143259' title=''/><author><name>Clem</name><uri>http://www.blogger.com/profile/12681428291311150487</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-303159033'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-1968722731888263163</id><published>2011-06-03T06:34:22.360-07:00</published><updated>2011-06-03T06:34:22.360-07:00</updated><title type='text'>In my case the stored procedure to check the conte...</title><content type='html'>In my case the stored procedure to check the content type usage returned nothing, but if you go and check the ContentTypeUsage table, it still had an entry for that content type.&lt;br /&gt;Sharepoint manager also shows the usage as 0, but still it can&amp;#39;t be deleted</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1968722731888263163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1968722731888263163'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1307108062360#c1968722731888263163' title=''/><author><name>Yatish</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1289729384'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-1620147330284330934</id><published>2011-05-16T22:49:57.799-07:00</published><updated>2011-05-16T22:49:57.799-07:00</updated><title type='text'>If you want to see the name of the list as well as...</title><content type='html'>If you want to see the name of the list as well as the ID use this.&lt;br /&gt;&lt;br /&gt;SELECT &lt;br /&gt; ctu.SiteId&lt;br /&gt; , sys.fn_varbintohexstr(ctu.ContentTypeId) AS ID&lt;br /&gt; , ctu.WebId&lt;br /&gt; , ctu.ListId&lt;br /&gt; , ctu.IsFieldId&lt;br /&gt; , ctu.Class&lt;br /&gt; , al.tp_Title&lt;br /&gt;FROM ContentTypeUsage ctu&lt;br /&gt;JOIN AllLists al on al.tp_ID = ctu.ListId&lt;br /&gt;WHERE (sys.fn_varbintohexstr(ContentTypeId) LIKE &amp;#39;[CONTENT TYPE ID]%&amp;#39;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1620147330284330934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1620147330284330934'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1305611397799#c1620147330284330934' title=''/><author><name>Big T</name><uri>http://www.blogger.com/profile/16816871532467183542</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-12953323'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-7787987641094847273</id><published>2011-05-12T09:15:18.297-07:00</published><updated>2011-05-12T09:15:18.297-07:00</updated><title type='text'>Very useful post! Thanks!</title><content type='html'>Very useful post! Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/7787987641094847273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/7787987641094847273'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1305216918297#c7787987641094847273' title=''/><author><name>kollega</name><uri>http://www.blogger.com/profile/03579667126290802083</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-268877169'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-5819501184784169332</id><published>2011-04-14T04:32:22.865-07:00</published><updated>2011-04-14T04:32:22.865-07:00</updated><title type='text'>The easiest way of all is to get hold of the Share...</title><content type='html'>The easiest way of all is to get hold of the SharePoint Manager tool on Codeplex.  Run SharePoint manager and you can navigate to the site, look at the content type in question and then look at the Usages branch which will tell you the URL of the lists or libraries that use that content type.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5819501184784169332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5819501184784169332'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1302780742865#c5819501184784169332' title=''/><author><name>Lars Nielsen</name><uri>http://discoverlars.wordpress.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-74134840'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-8016102043261823174</id><published>2011-03-29T13:34:42.130-07:00</published><updated>2011-03-29T13:34:42.130-07:00</updated><title type='text'>There is one more thing you can try in Sharepoint ...</title><content type='html'>There is one more thing you can try in Sharepoint 2010. Once you delete all lists or other items that use the content type, check the Recycle Bin for the site and make sure you empty it out. After that, take a look at the Site Collection recycle bin and make sure you empty that out as well.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/8016102043261823174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/8016102043261823174'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1301430882130#c8016102043261823174' title=''/><author><name>Football Motormouth</name><uri>http://www.blogger.com/profile/17672237598280312629</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2079534900'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-6679847905264335031</id><published>2010-04-20T00:56:56.879-07:00</published><updated>2010-04-20T00:56:56.879-07:00</updated><title type='text'>marvellous. Thank you, it saved me some time and a...</title><content type='html'>marvellous. Thank you, it saved me some time and awful fiddling around, indeed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/6679847905264335031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/6679847905264335031'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1271750216879#c6679847905264335031' title=''/><author><name>elSuizo</name><uri>http://www.blogger.com/profile/11179458851067835408</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://elsuizo.wordpress.com/files/2007/01/elsuizo-782x800.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1003136276'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-4695300994285493538</id><published>2009-02-19T14:39:00.000-08:00</published><updated>2009-02-19T14:39:00.000-08:00</updated><title type='text'>Just to let you know there an object In the ShareP...</title><content type='html'>Just to let you know there an object In the SharePoint Object Model called "SPContentTypeUsage" who is doing all the job without going to the database. You should give it a glance before going to the DB ;-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4695300994285493538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4695300994285493538'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1235083140000#c4695300994285493538' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-28118007'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-2203487248977847959</id><published>2009-01-22T08:22:00.000-08:00</published><updated>2009-01-22T08:22:00.000-08:00</updated><title type='text'>This is awesome!! saved me a lot of time... for so...</title><content type='html'>This is awesome!! saved me a lot of time... for some reason i could not use the SP as it gave me conversion error from varchar to varbinary i tried to used the convert function but did not work. &lt;BR/&gt;&lt;BR/&gt;Anyway the other SQL query did the job..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/2203487248977847959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/2203487248977847959'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1232641320000#c2203487248977847959' title=''/><author><name>Sameer Dhoot</name><uri>http://intellects.in</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1531905397'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-5334111310848109173</id><published>2008-11-08T03:28:00.000-08:00</published><updated>2008-11-08T03:28:00.000-08:00</updated><title type='text'>Thank you, saved me hours!</title><content type='html'>Thank you, saved me hours!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5334111310848109173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5334111310848109173'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1226143680000#c5334111310848109173' title=''/><author><name>Darryl</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-705232334'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-2448722915617360862</id><published>2008-10-30T00:10:00.000-07:00</published><updated>2008-10-30T00:10:00.000-07:00</updated><title type='text'>Probably too late, but site id is string,so put it...</title><content type='html'>Probably too late, but site id is string,so put it in single quote</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/2448722915617360862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/2448722915617360862'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1225350600000#c2448722915617360862' title=''/><author><name>Shekher</name><uri>http://www.blogger.com/profile/18218722383255023984</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-17235839'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-5080293214224352590</id><published>2008-10-01T00:19:00.000-07:00</published><updated>2008-10-01T00:19:00.000-07:00</updated><title type='text'>Awesome..just what the doctor ordered!!!</title><content type='html'>Awesome..just what the doctor ordered!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5080293214224352590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5080293214224352590'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1222845540000#c5080293214224352590' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-436018425'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-6562324690251583901</id><published>2008-05-30T01:05:00.000-07:00</published><updated>2008-05-30T01:05:00.000-07:00</updated><title type='text'>If you're calling it like the blog post suggests (...</title><content type='html'>If you're calling it like the blog post suggests ([proc_ListContentTypeInUse]&lt;BR/&gt;@SiteId = fab41e81df894799bc2c9c4bcbe6496a0,&lt;BR/&gt;@ContentTypeId = 0x010104) and you're getting no results back it means that the given content type (whatever 0x010104 represents) is not being used in the given sub site (whatever that GUID represents).&lt;BR/&gt;&lt;BR/&gt;Hope that helps,&lt;BR/&gt;Tyler</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/6562324690251583901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/6562324690251583901'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1212134700000#c6562324690251583901' title=''/><author><name>Tyler Holmes</name><uri>http://www.blogger.com/profile/16288716879251803370</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://bp1.blogger.com/_x_KlQTLtnfI/R6e9dSjX4AI/AAAAAAAAAUo/tYqjiMPzf4s/S220/MugShot-Cropped.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1882027894'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-4630199122227566866</id><published>2008-05-29T23:03:00.000-07:00</published><updated>2008-05-29T23:03:00.000-07:00</updated><title type='text'>Thanks, now it works without errors, but the stran...</title><content type='html'>Thanks, now it works without errors, but the strange thing is - it doesn't return any data either.&lt;BR/&gt;I've tried the built in SharePoint script:&lt;BR/&gt;USE [WSS_Content]&lt;BR/&gt;GO&lt;BR/&gt;&lt;BR/&gt;DECLARE @return_value int&lt;BR/&gt;&lt;BR/&gt;EXEC @return_value = [dbo].[proc_ListContentTypeInUse]&lt;BR/&gt;  @SiteId = fab41e81df894799bc2c9c4bcbe6496a0,&lt;BR/&gt;  @ContentTypeId = 0x010104&lt;BR/&gt;&lt;BR/&gt;SELECT 'Return Value' = @return_value&lt;BR/&gt;&lt;BR/&gt;GO&lt;BR/&gt;&lt;BR/&gt;that gives me nice errors:&lt;BR/&gt;Msg 8114, Level 16, State 1, Procedure proc_ListContentTypeInUse, Line 0&lt;BR/&gt;Error converting data type nvarchar to uniqueidentifier.&lt;BR/&gt;&lt;BR/&gt;So i'm pretty much stuck in this .</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4630199122227566866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/4630199122227566866'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1212127380000#c4630199122227566866' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-193085032'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-3025730744413395540</id><published>2008-05-29T08:22:00.000-07:00</published><updated>2008-05-29T08:22:00.000-07:00</updated><title type='text'>You bet.&lt;br&gt;&lt;br&gt;To run a query in the Management S...</title><content type='html'>You bet.&lt;BR/&gt;&lt;BR/&gt;To run a query in the Management Studio first connect to it. You can find out how to do &lt;A HREF="http://blog.tylerholmes.com/2008/02/accessing-wssmoss-content-databases.html" REL="nofollow"&gt;that here&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;After you've connected you'll see a list of databases on the left hand pane under the name of the server instance that you just connected to.&lt;BR/&gt;&lt;BR/&gt;Right click on the database you want to run a query against and choose 'New Query'. A new query window will come up where you can run some SQL.&lt;BR/&gt;&lt;BR/&gt;At this point you should be able to copy/paste some of the SQL you've seen in this post (and some of the comments) and run it by pressing F5 or clicking the Play button in the tool bar.&lt;BR/&gt;&lt;BR/&gt;If you get an error it'll probably be either cause the SQL syntax is unsound OR the object (like the stored procedure listed above) is not in the database you're currently running queries against. I'd make sure you're running queries against a SharePoint database as opposed to some other SQL Server database (like 'Master'). You can see (and cahnge) which database your queries are running against by looking at the drop down box at the top of the Query Pane.&lt;BR/&gt;&lt;BR/&gt;I hope that helps.&lt;BR/&gt;&lt;BR/&gt;Best,&lt;BR/&gt;Tyler</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/3025730744413395540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/3025730744413395540'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1212074520000#c3025730744413395540' title=''/><author><name>Tyler Holmes</name><uri>http://www.blogger.com/profile/16288716879251803370</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://bp1.blogger.com/_x_KlQTLtnfI/R6e9dSjX4AI/AAAAAAAAAUo/tYqjiMPzf4s/S220/MugShot-Cropped.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1882027894'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-9141761728915590114</id><published>2008-05-29T03:25:00.000-07:00</published><updated>2008-05-29T03:25:00.000-07:00</updated><title type='text'>Can anyone tell me how to run stored procedure wit...</title><content type='html'>Can anyone tell me how to run stored procedure with MS SQL Server Management Studio? All i see there is  scripts and more scripts and if i just copy needed values i get errors... Please just explain how to corectly do this.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/9141761728915590114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/9141761728915590114'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1212056700000#c9141761728915590114' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2054452220'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-1194017415890555293</id><published>2008-04-09T20:47:00.000-07:00</published><updated>2008-04-09T20:47:00.000-07:00</updated><title type='text'>Great post man. Thanks a bunch.</title><content type='html'>Great post man. Thanks a bunch.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1194017415890555293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/1194017415890555293'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1207799220000#c1194017415890555293' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-814086235'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-5877473839374674695</id><published>2008-04-09T06:35:00.000-07:00</published><updated>2008-04-09T06:35:00.000-07:00</updated><title type='text'>Great post. You saved me some time. Thanx for the ...</title><content type='html'>Great post. You saved me some time. Thanx for the info</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5877473839374674695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/5877473839374674695'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1207748100000#c5877473839374674695' title=''/><author><name>Kevin Jones</name><uri>http://www.blogger.com/profile/06868660465964232040</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-856067461'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-3248953690975588605</id><published>2008-03-17T21:01:00.000-07:00</published><updated>2008-03-17T21:01:00.000-07:00</updated><title type='text'>Ok, you can get the second query from the stored p...</title><content type='html'>Ok, you can get the second query from the stored procedure that reuturns the list's name:&lt;BR/&gt;&lt;BR/&gt;exec sp_helptext 'proc_ListContentTypeInUse'&lt;BR/&gt;&lt;BR/&gt;Then, paste this into a new query and add "*" to return all fields from the "ContentTypeUsage" table. &lt;BR/&gt;&lt;BR/&gt;Then using the returned WebId and ListId, you can find the list:&lt;BR/&gt;&lt;BR/&gt;select * from webs where id = GUID' &lt;BR/&gt;select * from alllists where tp_id = 'GUID'&lt;BR/&gt;&lt;BR/&gt;Remember that you need to "Allow management of content types" in the List's Advanced Settings then you get delete the List Content Type and finally you can delete the Site Content Type.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/3248953690975588605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/3248953690975588605'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1205812860000#c3248953690975588605' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-691342242'/></entry><entry><id>tag:blogger.com,1999:blog-8451123064758809734.post-7672904085509027634</id><published>2008-03-17T20:50:00.000-07:00</published><updated>2008-03-17T20:50:00.000-07:00</updated><title type='text'>Great post - but how do I know *which* list this c...</title><content type='html'>Great post - but how do I know *which* list this content type belongs in?&lt;BR/&gt;&lt;BR/&gt;My result is "Pages" and I have several page libraries in my Site Collection (it's a Publishing/WCM site with multiple sub-sites).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/7672904085509027634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8451123064758809734/1736554455225746577/comments/default/7672904085509027634'/><link rel='alternate' type='text/html' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html?showComment=1205812200000#c7672904085509027634' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tylerholmes.com/2008/02/deleting-content-types-in-sharepoint.html' ref='tag:blogger.com,1999:blog-8451123064758809734.post-1736554455225746577' source='http://www.blogger.com/feeds/8451123064758809734/posts/default/1736554455225746577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1127794890'/></entry></feed>
