dbTalk Databases Forums  

How to put an "mdf" file into 2 different physical drive?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How to put an "mdf" file into 2 different physical drive? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
harifajri@gmail.com
 
Posts: n/a

Default How to put an "mdf" file into 2 different physical drive? - 08-09-2010 , 05:50 AM






Hi,
i need help.
I have a server HP G6, with MS SQL 2008 installed on it.
My "Drive C" is almost full.
My "database.mdf" dan "database.ldf" is on drive C.

I plan to buy a new hard disk and then next time i will have a Drive
'D'.

Is it posible in SQL 2008 if my drive C is full, then my
"database.mdf" on drive C,
will continue (automatically) to drive D?

What should i do?



Best Regards,

HF

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How to put an "mdf" file into 2 different physical drive? - 08-09-2010 , 02:26 PM






harifajri (AT) gmail (DOT) com (harifajri (AT) gmail (DOT) com) writes:
Quote:
i need help.
I have a server HP G6, with MS SQL 2008 installed on it.
My "Drive C" is almost full.
My "database.mdf" dan "database.ldf" is on drive C.

I plan to buy a new hard disk and then next time i will have a Drive
'D'.

Is it posible in SQL 2008 if my drive C is full, then my
"database.mdf" on drive C,
will continue (automatically) to drive D?
No, you can't do that.

But you can add a second file to the filegroup, and put that new file on
the new disk. You should also turn off autogrow on the original file.

But it may be better in the long run to move the database file to the new
disk entirely.

See the command ALTER DATABASE in Books Online about these operations.
There is a specific topic "Moving Database Files" that can be of interest.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.