SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Change default installation directory for system databases


Change default installation directory for system databases

Author
Message
kramaswamy
kramaswamy
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3906 Visits: 1832
Hey all,

Got a question regarding the installation of a new SQL Server instance. Up until now, what I've been doing is, running the installation like normal, then using ALTER DATABASE to move the data and log files for model, tempdb, and msdb to a different folder. I use a folder structure similar to \MSSQL\Data for the data files, and \MSSQL\Log for the log files.

I recently learned that you can alter the installation folder so as to save a few steps. However, it seems as though this installs the *entire* MSSQL folder to that drive, and not just the data and log files.

Is there any way to facilitate this work, or do I have to go with the original option?
george sibbald
george sibbald
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24586 Visits: 13698
you can specify a different directory for your binaries and database files, and also seperate system databases from user data files, user log files and tempdb files.

there is no benefit to separating data and log files for master. model and msdb.

there should be no need to run alter database statements after an install at all.

---------------------------------------------------------------------
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search