<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.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>Query for server DefaultData &amp;amp; DefaultLog folders</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/10/query-for-server-defaultdata-defaultlog-folders.aspx</link><description>Do you ever need to query for the DefaultData &amp;amp; DefaultLog folders for your SQL Server instance? Well, I just did and the following script enabled me to do that: DECLARE @HkeyLocal NVARCHAR ( 18 ), @MSSqlServerRegPath NVARCHAR ( 31 ), @InstanceRegPath</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Query for server DefaultData &amp; DefaultLog folders</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/10/query-for-server-defaultdata-defaultlog-folders.aspx#46584</link><pubDate>Mon, 10 Dec 2012 17:50:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46584</guid><dc:creator>Cliff</dc:creator><description>&lt;p&gt;The folks over at SqlSlayer.com have an admin database put together that has some functions for getting default directories. Full Discolsure, it's run by friends of mine, and I;ve written a couple posts for the site. It is free and open source.&lt;/p&gt;
</description></item><item><title>re: Query for server DefaultData &amp; DefaultLog folders</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/12/10/query-for-server-defaultdata-defaultlog-folders.aspx#46616</link><pubDate>Wed, 12 Dec 2012 07:28:06 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46616</guid><dc:creator>Vishal</dc:creator><description>&lt;p&gt;Handy script. I have also written a post earlier to extract default data paths for multiple instances.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlandme.com/2012/01/05/sql-server-identifying-default-data-directory-for-multiple-instances-through-registry/"&gt;http://sqlandme.com/2012/01/05/sql-server-identifying-default-data-directory-for-multiple-instances-through-registry/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vishal&lt;/p&gt;
</description></item></channel></rss>