SQL Server Storage Basics: Database Files

Note: All the screenshots are applied to SQL Server 2012 Enterprise Evaluation Edition.
This article will explain about the storage basics in SQL Server. After reading this article we will get to know physical implementation of database in SQL Server. We will explore about the features, work of data files and transaction log files in SQL Server through this article. In case if you missed previous articles you can check them out from the following links:

1. Introduction

Like every other DBMS software, SQL Server has also its storage engine which we need to know for better understanding of basics. SQL DBA should know well about these storage basics. In this article we will discuss about SQL Server storage engine. SQL Server storage engine has itself a vast topic, one article will not be sufficient for this because it has many things in it that we should know. After thinking a lot how to start this topic, I decided to discuss these basics in bunch of short articles because if I will try to cover all the things in one article it will get lengthy and we will not easily grasp. So let’s move ahead into SQL Server Storage Basics.

2. Physical Database Architecture

Every SQL DBA knows that the data in SQL Server is stored and organized into the logical components such as tables, views, procedures in databases, which a user can view easily but from the point of database administration we will talk here about physical implementation of data in databases. A database is physically implemented as two or more files on disk, which we called primary data files (.mdf), secondary data files (.ndf) and log files (.ldf). For better understanding we can put the following points:
table
User view
Figure 1: User view & physical implementation of database

3. Storage Basics Explained

3.1 Primary Data Files

3.2 Secondary Data Files

3.3. Transaction Log Files

4. Storage Limitation/Capacity of SQL Server

SQL Server database engine has the following storage capacity for different SQL Server objects:
SQL Server Storage capacity
References

Conclusion

This is all about SQL Server database physical files, many more things still need to uncover which you will see probably in coming articles like files and Filegroups, pages, extents, transaction log file in more details. Give your feedback so that in future I can serve you better. To know more about SQL Server Database Administration click on below link:
Happy reading and keep sharing your knowledge.