May 14, 2013 at 1:36 pm
If SQL Server 2012 is installed with all defaults selected, is there a way (post installation) to change the data directories settings?
Thanks in advance, Kevin
May 15, 2013 at 5:14 pm
USE [master]
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultData',
REG_SZ,
N'C:\ new data file path...'
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultLog',
REG_SZ,
N'C:\ new log file path...'
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'BackupDirectory',
REG_SZ,
N'C:\ new backup path...'
GO
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 17, 2013 at 4:36 am
SQL Server Management Studio, Server Properties, Database Settings
May 22, 2013 at 5:51 am
Thanks you OPC.Three and Paul Ross.
May 22, 2013 at 5:53 am
also, i you can go to the facets for the server, and modify the same paths opc.three posted, but via the GUI instead:
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply