SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Move MDF file vs adding an NDF file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

itsonlyme4
Yak Posting Veteran

96 Posts

Posted - 03/16/2014 :  09:58:41  Show Profile  Reply with Quote
I have a sql server 2000 instance where the MDF for one of the databases is on the C: drive and we are running out of space.

The Database is a transactional replication subscriber - the Replication logging and Replication PUSH jobs are running on the Publisher.

If I add a Datafile (.NDF) on another Drive and then set the .MDF file to NOT autogrow, will the .MDF stop growing altogether and data will be written to the .NDF going forward?

Or am I better served to detach the database and just move the MDF file to another drive??

tkizer
Almighty SQL Goddess

USA
36985 Posts

Posted - 03/16/2014 :  12:56:47  Show Profile  Visit tkizer's Homepage  Reply with Quote
Yes if you set the MDF file to not autogrow, it will use the NDF file. SQL Server uses a proportional fill algorithm for the data files in a filegroup.

But I would move the MDF file to a different drive as it is not a good practice to have it on the same drive as the operating system.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2062 Posts

Posted - 03/17/2014 :  02:44:13  Show Profile  Visit jackv's Homepage  Reply with Quote
There are certain performance benefits by splitting out some data into different files across different drives - for example, splitting read only and write data. This requires some analysis and planning.

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000