官术网_书友最值得收藏!

How data is stored

Every database on SQL Server must have at least two files:

  • The primary data file with the usual suffix, mdf
  • The transaction log file with the usual suffix, ldf

For lots of databases, this minimal set of files is not enough. When the database contains big amounts of data such as historical tables, or the database has big data contention such as production tracking systems, it's good practise to design more data files. Another situation when a basic set of files is not sufficient can arise when documents or pictures would be saved along with relational data. However, SQL Server still is able to store all of our data in the basic file set, but it can lead to a performance bottlenecks and management issues. That's why we need to know all possible storage types useful for different scenarios of deployment. A complete structure of files is depicted in the following image:

For many administrators who never care about databases on SQL Server before, this tree of objects could be unclear and confusing. It's time to explain every single node in the preceding tree.

主站蜘蛛池模板: 清水河县| 柞水县| 新宾| 汉源县| 岗巴县| 青冈县| 镇赉县| 塘沽区| 台中市| 桓台县| 凤庆县| 阳曲县| 诸暨市| 长宁县| 托克逊县| 来安县| 门源| 将乐县| 托克逊县| 自治县| 延津县| 康乐县| 仙桃市| 敖汉旗| 乌兰察布市| 铁力市| 云霄县| 嵩明县| 潼南县| 大安市| 盐山县| 巴青县| 连江县| 泾源县| 新建县| 黔西县| 灵丘县| 上饶县| 永平县| 南康市| 环江|