SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How to make sure a database mdf and ldf files are
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pras2007
Posting Yak Master

216 Posts

Posted - 11/05/2012 :  07:28:05  Show Profile  Reply with Quote
Hello All,

I want to make sure whenever a new database was created it will be stored in a directory I had specified… I thought the way to accomplish this task was to change where the mdf and the ldf files were stored on the Model database. By changing where the Model database stores its mdf and ldf file did not automatically stored the new database files to that directory. Does anyone know how to accomplish this task?

Thanks.

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/05/2012 :  07:38:10  Show Profile  Reply with Quote
Right-click the server name in object explorer of SSMS, select properties, Database Settings tab and change default locations. If I am not mistaken, you will need to restart the server for the changes to take effect.
Go to Top of Page

pras2007
Posting Yak Master

216 Posts

Posted - 11/05/2012 :  07:53:30  Show Profile  Reply with Quote
Thanks Sunitabeck, changing the default location in the database setting accomplished the task. But restarting the server nor the services is not required for the changes to take effect. Thanks once again.

Edited by - pras2007 on 11/05/2012 07:54:04
Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/05/2012 :  09:03:39  Show Profile  Reply with Quote
Pras, thanks for the update. I must have gotten it confused with some other settings change that required a server restart.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000