x

number of MDF files for a database

in sql 2000 we can attach upto 16 Mdf files using sp_attach_db, from 2005 onwards we use For Attach clause. my question here is, how many MDF files can be created for a particular database.

more ▼

asked Nov 11, 2009 at 08:50 AM in Default

avatar image

tambiraj
11 1 1 3

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

Microsoft recommend one data file per filegroup per CPU core.

http://technet.microsoft.com/en-gb/library/cc966414.aspx

In 2005 I'm not aware of any limit on the number of files that can be attached using the FOR ATTACH clause. I have successfully attached more than 20 files of a single database.

more ▼

answered Nov 11, 2009 at 10:36 AM

avatar image

David 1
1.8k 3 5

(comments are locked)
10|1200 characters needed characters left

You can create up to 32,767 files in a database. However you can only attach 16 files.

more ▼

answered Nov 11, 2009 at 09:29 AM

avatar image

Mark Allison
479 1 3 8

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x273

asked: Nov 11, 2009 at 08:50 AM

Seen: 2677 times

Last Updated: Nov 11, 2009 at 08:50 AM

Copyright 2016 Redgate Software. Privacy Policy