Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Setup / December 2005

Tip: Looking for answers? Try searching our database.

Sql Server 2005 - Moving data folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
postings@alexshirley.com - 29 Dec 2005 13:01 GMT
Hi

I'm trying to move the data folder where the db's are kept for SQL
Server 2005 from the C drive to the local D drive.

I've followed this article
http://support.microsoft.com/default.aspx?scid=kb;en-us;224071

Once detaching the database (Adventureworks say) the file won't move
(access denied). I guess it's locked. Stopping SQL Server doesn't make
any difference.

Also want to make sure new databases are created here by default. Also
the permissions for the SQL data folder is a bit weird, one of the
users is called:

SQLServer2005MSSQLUser$MYSERVER$MSSQLSERVER
(MYSERVER\SQLServer2005MSSQLUser$MYSERVER$MSSQLSERVER)

Bit of a long name and I can't assign that to my new data folder on the
new drive.

Does anybody have experiences on moving the databases over here. If
it's easier I'll remove/reinstall SQL server (it's a new install
without crititical data), however I couldn't see an option for where
the data goes by default).

Does anybody have experiences on moving the databases over with SQL
Server 2005?

Many thanks

Alex
John Bell - 30 Dec 2005 16:24 GMT
Hi

I just tried this and seem to have the same problem with Adventureworks but
I could move other user database. Even stopping all services and re-booting
didn't help. In the end I just deleted the files and re-installed from
http://www.microsoft.com/downloads/details.aspx?FamilyId=E719ECF7-9F46-4312-AF89
-6AD8702E4E6E&displaylang=en

When you run the msi you can specify the new location.

Now I seem to be able to move the adventureworks database without issue.

John

> Hi
>
[quoted text clipped - 29 lines]
>
> Alex
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.