Is there any way using the Command Line install method, I can specify a custom location for the system databases?

I want them to be in D:\SqlServer\Data

or is this only way to do this to install them in the default directory and then move them after?

  • Are you using the configuration.ini file You will need to edit INSTALLSQLDATADIR="S:" as per your requirement. – Ramakant Dadhichi Jan 31 at 16:07

Yes you can do this. Best way to do is use the configuration.ini file and customise it as per your use.

For system datafiles you will need to edit this portion of the file : INSTALLSQLDATADIR="S:"

ABove example is where my system datafiles go into.. (S: )

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.