Solved

changing the location of mdf and ldf files in MSSQL2005

Posted on 2009-07-09
2
309 Views
Last Modified: 2012-05-07
I have installed the database files (.mdf files) in D:/ drive. My D:/ drive has gone full and I need to change the location of the .mdf location. Currently I am not able to do it SQL2005. Please share the procedures.
I have installed the database files (.mdf files) in D:/ drive. My D:/ drive has gone full and I need to change the location of the .mdf location. Currently I am not able to do it SQL2005. Please share the procedures

Open in new window

0
Comment
Question by:Karthi_devaraj
2 Comments
 
LVL 6

Accepted Solution

by:
rpassero earned 500 total points
ID: 24815168
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24815173
here is an example

ALTER DATABASE AdventureWorks
MODIFY FILE (NAME = AdventureWorks_Data, FILENAME = 'D:\SQLData\AdventureWorks_Data.mdf');
ALTER DATABASE AdventureWorks
MODIFY FILE (NAME = AdventureWorks_Log, FILENAME = 'D:\SQLData\AdventureWorks_Log.ldf');
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question