﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Database Default file Locations / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 00:53:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Database Default file Locations</title><link>http://www.sqlservercentral.com/Forums/Topic438976-146-1.aspx</link><description>Old thread, but still got the email.I would agree that it would not carry over to the inactive cluster.  Although, I have not tried it on a cluster, but have worked with them in the past.  I would assume that type of change would not show up on the inactive node.</description><pubDate>Wed, 21 Apr 2010 10:11:14 GMT</pubDate><dc:creator>starflyer</dc:creator></item><item><title>RE: Database Default file Locations</title><link>http://www.sqlservercentral.com/Forums/Topic438976-146-1.aspx</link><description>Hello, I know that this thread is old, but...I would like to script a change of SQL default files location on a SQL2005 Failover Cluster. I am afraid that modifying the Registry "manually" for this change might write the right parameters on the active cluster node, leaving the inactive node unchanged. Do you agree on this?Did everyone try the above script on a 2 node Failover cluster?Thanks in advance and Best regards,Fabrizio</description><pubDate>Wed, 21 Apr 2010 08:57:39 GMT</pubDate><dc:creator>Fabrizio Faleni</dc:creator></item><item><title>RE: Database Default file Locations</title><link>http://www.sqlservercentral.com/Forums/Topic438976-146-1.aspx</link><description>Thank you very much for prompt reply.</description><pubDate>Fri, 04 Jan 2008 09:56:06 GMT</pubDate><dc:creator>Bhushan Kalla</dc:creator></item><item><title>RE: Database Default file Locations</title><link>http://www.sqlservercentral.com/Forums/Topic438976-146-1.aspx</link><description>You can script from the action you do in the GUI.  I didn't see this anywhere else (like any of the property functions), but this will do the job in script format:USE [master]GOEXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultData', REG_SZ, N'D:\SQLdata\NewPath'GOEXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultLog', REG_SZ, N'E:\SQLlogs\NewPath'GO</description><pubDate>Fri, 04 Jan 2008 09:49:31 GMT</pubDate><dc:creator>starflyer</dc:creator></item><item><title>Database Default file Locations</title><link>http://www.sqlservercentral.com/Forums/Topic438976-146-1.aspx</link><description>Hi Everyone,I would like to modify the "Database default locations" in Database settings under server properties using T-SQL script. The easy way to do this one through GUI on Management Studio, right click on the SQL Server instance and click on properties then select "Database Settings" option and change the "Database default locations" to desired locations for Data and Log files". But I want to do this through T-SQL script if I  know which system table holds these file location information. Any help is greatly appreicated.Thanks,BK</description><pubDate>Fri, 04 Jan 2008 08:23:45 GMT</pubDate><dc:creator>Bhushan Kalla</dc:creator></item></channel></rss>