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 Administration
 MDF and LDF file from C: to d: .

Author  Topic 

jhunu
Starting Member

18 Posts

Posted - 2011-11-22 : 14:01:26
I want to move the MDF and LDF file from C: to d: .
Its not allowing me to move .

How to solve this issue

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-11-22 : 14:02:30
Are you getting an error? If so, you'll need to post it as I can't read your mind or see your computer screen.

Also, what steps did you do to move it?

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

Subscribe to my blog
Go to Top of Page

jhunu
Starting Member

18 Posts

Posted - 2011-11-22 : 14:18:26
Thanks for the help. I am using Detach and attach method for moving .
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-11-22 : 14:19:41
That's a correct method. So did it give you an error? Please post it!

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

Subscribe to my blog
Go to Top of Page

jhunu
Starting Member

18 Posts

Posted - 2011-11-22 : 14:42:29
quote:
Originally posted by tkizer

That's a correct method. So did it give you an error? Please post it!

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

Subscribe to my blog

Go to Top of Page

jhunu
Starting Member

18 Posts

Posted - 2011-11-22 : 14:43:35


Msg 947, Level 16, State 1, Line 1
Error while closing database 'Cardv32'. Check for previous additional errors and retry the operation.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-11-22 : 14:51:31
Googling your error seems to indicate your database might be corrupt. Verify if the detach worked or not. Even though it errored, it may have detached it anyway. If it did detach it, move your files to where you want them, and then try to attach it.

If detach/attach doesn't work, you'll need to verify that your database is okay via DBCC CHECKDB. If it is okay, you can move your files around with BACKUP/RESTORE instead.

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

Subscribe to my blog
Go to Top of Page
   

- Advertisement -