Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Post Installation Changes (data directories) with SQL Server 2012 Expand / Collapse
Author
Message
Posted Tuesday, May 14, 2013 1:36 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, January 7, 2016 9:27 AM
Points: 366, Visits: 476
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



Post #1452803
Posted Wednesday, May 15, 2013 5:14 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:23 AM
Points: 7,698, Visits: 13,839
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
Post #1453290
Posted Friday, May 17, 2013 4:36 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, November 30, 2015 9:46 AM
Points: 13, Visits: 181
SQL Server Management Studio, Server Properties, Database Settings
Post #1453924
Posted Wednesday, May 22, 2013 5:51 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, January 7, 2016 9:27 AM
Points: 366, Visits: 476
Thanks you OPC.Three and Paul Ross.


Post #1455438
Posted Wednesday, May 22, 2013 5:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 10:50 AM
Points: 13,975, Visits: 36,288
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

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #1455439
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse