Install SQL Server DB on a different drive - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rakesh188
Posts: 6
Joined: Tue Jun 15, 2010 9:02 pm

Install SQL Server DB on a different drive

How can I change the file location of the database when AI creates the databse?
For e.g SQL server is installed in C: drive and our application is installed in D: When the database is created from AI can I have the DB and log files located in D:\Data
Is there a way I can change the location where SQL server is installed for a silient installation?
Thanks
Rakesh
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install SQL Server DB on a different drive

Hi Rakesh,
How can I change the file location of the database when AI creates the databse?
If you are creating a database from scripts, then by using the appropriate connection string the database will be created on the server the installer connects to. The location of the server is irrelevant as long as it is in the network and available. Here is an article to browse for the available servers at install time so you can afterwards include their names in a valid connection string.
Is there a way I can change the location where SQL server is installed for a silient installation?
If you are installing SQL Server as a prerequisite, depending on its package design you can set its installation path via a command line:
http://www.advancedinstaller.com/user-g ... rereq.html
To find the appropriate command line for the SQL installation package you should search the Internet or contact Microsoft support on the matter.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”