<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint world of ECM and Information Management : Site</title><link>http://msmvps.com/blogs/laflour/archive/tags/Site/default.aspx</link><description>Tags: Site</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>SharePoint Tip #41. Do you know “how to find the site definition being used for a site”?!</title><link>http://msmvps.com/blogs/laflour/archive/2009/06/15/sharepoint-tip-41-do-you-know-how-to-find-the-template-being-used-for-a-site.aspx</link><pubDate>Sun, 14 Jun 2009 13:15:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695314</guid><dc:creator>Michael</dc:creator><slash:comments>6</slash:comments><description>&lt;p&gt;Sometimes you have a already created site but wanted to know the site definition of that site, or gets the name of the site definition from which the site template that was used to create the site is derived. There are several steps to get that template&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to the &amp;ldquo;Central Administration &amp;ndash;&amp;gt; Application Management &amp;ndash;&amp;gt; Site Collection List&amp;rdquo; and choose the site you are trying to find the template for &lt;/li&gt;
&lt;li&gt;Write down site &amp;quot;Title&amp;rdquo; and &amp;ldquo;Database name&amp;rdquo; values &lt;/li&gt;
&lt;li&gt;Open SQL management studio and execute the following query for content database that you find from previous step
&lt;div style="line-height:12pt;background-color:#f4f4f4;margin:20px 0px 10px;width:97.5%;font-family:consolas, &amp;#39;Courier New&amp;#39;, courier, monospace;max-height:200px;font-size:8pt;overflow:auto;cursor:text;border:gray 1px solid;padding:4px;"&gt;
&lt;div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &amp;#39;Courier New&amp;#39;, courier, monospace;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0px;"&gt;
&lt;pre style="line-height:12pt;background-color:white;margin:0em;width:100%;font-family:consolas, &amp;#39;Courier New&amp;#39;, courier, monospace;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0px;"&gt;&lt;span style="color:#606060;"&gt;   1:&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt; Title, WebTemplate,ProvisionConfig&lt;/pre&gt;
&lt;pre style="line-height:12pt;background-color:#f4f4f4;margin:0em;width:100%;font-family:consolas, &amp;#39;Courier New&amp;#39;, courier, monospace;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0px;"&gt;&lt;span style="color:#606060;"&gt;   2:&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt; dbo.Webs&lt;/pre&gt;
&lt;pre style="line-height:12pt;background-color:white;margin:0em;width:100%;font-family:consolas, &amp;#39;Courier New&amp;#39;, courier, monospace;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0px;"&gt;&lt;span style="color:#606060;"&gt;   3:&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt; Title = &lt;span style="color:#006080;"&gt;&amp;#39;&amp;lt;title of your site&amp;gt;&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Write down the number in &amp;ldquo;Web Template&amp;rdquo; column &lt;/li&gt;
&lt;li&gt;Navigate to this site &lt;a href="http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=45"&gt;http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=45&lt;/a&gt; and find definition is associated with that ID &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;rsquo;s all.&lt;/p&gt;
&lt;p&gt;The second way to get it is via SharePoint API &lt;span style="font-family:Courier New;"&gt;SPWeb.WebTemplate&lt;/span&gt; property. Sample is &lt;a target="_blank" href="http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=45"&gt;there&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tips &amp;amp; Tricks section moved to its own site. &lt;/strong&gt;&lt;a href="http://sharepoint.devs-sandbox.com/index.php?/Tips-and-Tricks/Development/tip-41-how-to-find-the-site-definition-being-used-for-a-site.html"&gt;&lt;strong&gt;http://sharepoint.devs-sandbox.com/index.php?/Tips-and-Tricks/Development/tip-41-how-to-find-the-site-definition-being-used-for-a-site.html&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695314" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/laflour/archive/tags/SharePoint+Tips+and+Tricks/default.aspx">SharePoint Tips and Tricks</category><category domain="http://msmvps.com/blogs/laflour/archive/tags/Site/default.aspx">Site</category></item></channel></rss>