all groups > sql server msde > august 2006 >
You're in the

sql server msde

group:

Move SQL from Drive to Drive


Move SQL from Drive to Drive Qnguyen
8/17/2006 3:47:01 PM
sql server msde:
Hi,
Do you know how to move SQL and its database from one drive to another drive
(C to D for example). My C drive is almost full but D drive still has a lot
of space. I would like to move my SQL and its database to D. Thanks for any
help

Re: Move SQL from Drive to Drive Hari Prasad
8/17/2006 6:58:09 PM
Hi,

Do not move SQL files to D drive; for that you need to do a removal of SQL
Server software and install it in D drive.
To overcome your space issue just move your application/user databases to D
Drive.

Steps:-

1. Detach the database [SP_DETACH_DB Dbname]
2. Move the files from C drive to D drive using explorer
3. Attach the database [SP_Attach_db 'dbname','Mdffile with path','ldf file
name with path'

Thanks
Hari
SQL Server MVP



[quoted text, click to view]

Re: Move SQL from Drive to Drive Qnguyen
8/18/2006 9:48:01 AM
Thanks Hari,
but I do not know if SQL Server Enterprise Manager still recognize the
database after moving?

[quoted text, click to view]
Re: Move SQL from Drive to Drive Andrea Montanari
8/18/2006 7:17:08 PM
hi,
[quoted text, click to view]

if you correctly moved the database, EM will recognize them as they will be
registered into SQL Server instance..
you can even attach the moved database via EM...right click on the Database
node and... "attach" :)
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.19.0 - DbaMgr ver 0.63.0 and further SQL Tools
--------- remove DMO to reply

AddThis Social Bookmark Button