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
 General SQL Server Forums
 New to SQL Server Administration
 Change instance store directory
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

allan8964
Posting Yak Master

196 Posts

Posted - 07/23/2012 :  11:05:17  Show Profile  Reply with Quote
I have created an instance to store data in C:\Data. Now I want to change the store place to H:\Data how can I change that?
Thanks in advance.

robvolk
Most Valuable Yak

USA
15559 Posts

Posted - 07/23/2012 :  11:14:23  Show Profile  Visit robvolk's Homepage  Reply with Quote
In Management Studio, right-click the server icon, choose Properties. Under Database Settings you'll find text boxes to set default data and log file locations.
Go to Top of Page

allan8964
Posting Yak Master

196 Posts

Posted - 07/23/2012 :  11:55:53  Show Profile  Reply with Quote
thanks robvolk. But I can only see local drives. Is it true that I can only use local drives for data store? If I need to store the data in other file share (i tried but seemed not working) what should I do (I know there is a way using node something.)?
thanks again.
Go to Top of Page

robvolk
Most Valuable Yak

USA
15559 Posts

Posted - 07/23/2012 :  12:13:11  Show Profile  Visit robvolk's Homepage  Reply with Quote
If H: is a mapped drive, then that won't work. You'd have to use the UNC path, which is possible in SQL Server 2008 R2 but I wouldn't recommend it as the default setting. See here for more information: http://blogs.msdn.com/b/sqlserverfaq/archive/2010/05/13/inf-new-sql-server-features-in-sql-server-2008-r2-part-1.aspx
Go to Top of Page

allan8964
Posting Yak Master

196 Posts

Posted - 07/23/2012 :  17:34:24  Show Profile  Reply with Quote
thanks robvolk.
I tried UNC it works but I can't create a new db on it. It says user and password not recognized. I set the permission as Everyone FULL for the shared folder. Anyway I found the way of using mountvol command to create a mounted point on either mapped drive or other virtual drive, I am using Hyper-V. But this is still not what I want. I need to connect to a physical drive. Maybe I need try VMWare for virtualization.
thanks again. very good link.
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.09 seconds. Powered By: Snitz Forums 2000