Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database script file

Author  Topic 

rowter
Yak Posting Veteran

76 Posts

Posted - 2010-02-23 : 14:01:37
Hi,

If this is not the right forum, please move it to the approprite forum.

I generated a script file to install a database on the server.

What i need now is instead of installing the database in the default folder(SQL Server), i want to install it in another folder.
If this is possible, i want to have it in the script
How can i do this?

Thanks in Advance

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-02-23 : 15:19:44
To put a database in particular location (not the default), then specify that in the CREATE DATABASE command.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

rowter
Yak Posting Veteran

76 Posts

Posted - 2010-02-24 : 10:43:45
Thanks.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-02-24 : 13:57:20
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -