Solved

regarding the data file *.mdf

Posted on 2006-10-24
3
295 Views
Last Modified: 2008-02-01
Hi,
I have 2 data file configure for my database and currently with below configuration

data_historyA.mdf -- data size ig 10gb and still have plenty of free space in disk F
data_historyB.ndf -- data size is 11gb and disk is running out of space drive E
my question is, will the database become inaccessible if disk E getting full? or will sql only fill up data_historyA.mdf  only?
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17794089
>my question is, will the database become inaccessible if disk E getting full?
no. as long as it can extend at least 1 data file, it will happily continue working
>or will sql only fill up data_historyA.mdf  only?
yes, exactly.
0
 
LVL 11

Expert Comment

by:deroby
ID: 17794284
hmm,

is ndf a DATA file (like .mdf) or a LOG file (like .ldf) ?????? I seem to remember additional logfiles are called .ndf, but data files 'keep' the .mdf extention...

If it's a logfile, it contains different information than the .mdf file and it will need some extra room (either on E: or by creating a secondary log device on another drive) or you will run into the error : "Error log full, please create a backup and truncate the the transaction log" (or something like that, I try not to see that error too often =)

On the other side : do you really need a log file that keeps growing & growing (11Gb is a lot).
=> see different questions and the books online for 'RECOVERY PLAN' (you're probably on FULL and I wouldn't be surprised if 'SIMPLE' is all you really need... )

0
 
LVL 11

Expert Comment

by:deroby
ID: 17794289
to get that information : simply run this statement

EXEC sp_helpdb <your database name>

it will return 2 recordsets, the second one listing the files, with in the last column the 'purpse' of the file

for example : (hope formatting survives a bit)

tempdev               1      G:\MSSQL\Data\tempdb.mdf      PRIMARY       15728640 KB        Unlimited        2097152 KB      data only
templog                2      G:\MSSQL\Logs\templog.ldf         NULL             52428800 KB      Unlimited      10485760 KB      log only
tempdev2      3      G:\MSSQL\Data\tempdb1.mdf      PRIMARY      15728640 KB      Unlimited      2097152 KB      data only
tempdev3      4      G:\MSSQL\Data\tempdb2.mdf      PRIMARY      15728640 KB      Unlimited      2097152 KB      data only
tempdev4      5      G:\MSSQL\Data\tempdb3.mdf      PRIMARY      15728640 KB      Unlimited      2097152 KB      data only
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql query help 15 55
SQL Syntax 6 41
Need to create and populate a column map table 5 21
SQL Query - Multiple match on field with no extras 7 15
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

733 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