SQLServer数据库存储结构分析.pdf
文本预览下载声明
第 12 卷 第 4 期 太赫兹科学与电子信息学报 Vo1.12,No.4
2014 年 8 月 Journal of Terahertz Science and Electronic Information Technology Aug.,2014
文章编号:2095-4980(2014)04-0605-07
SQL Server 数据库存储结构分析
张锦文
(中国工程物理研究院 计算机应用研究所,四川 绵阳 621999)
摘 要 :针对结构化查询语言(SQL)Server 2000 数据库的主数据文件的存储结构进行了解剖。
通过对大量的数据库主数据文件的解读统计分析,阐述了数据库主数据文件的存储结构,推导出
主数据文件中数据页、页面标题、记录标题、记录偏移量数组的逻辑结构,推导出记录存放顺序
和数据类型代码。通过编程做了一些实例,得出解读数据库主数据文件的基本方法,为手工恢复
数据库提供了技术途径。
关键词 :数据页;页面标题;记录;记录偏移量数组
中图分类号 :TN242 文献标识码 :A doi :10.11805/TKYDA201404.0605
Database storage structure analysis of MS Structured Query Language Server
ZHANG Jin-wen
(Institute of Computer Application,China Academy of Engineering Physics,Mianyang Sichuan 621999,China)
Abstract: The primary data file storage structure of Microsoft(MS) Structured Query Language(SQL)
Server is analyzed. By reading and calculating large amount of primary data files in databases,the storage
structure of primary data file is stated,the logic structure of data page,data title,record title and data
offset array in the primary data file are derived,and the storing order and the data type code are revealed.
The essential method of reading primary data file of databases is summarized and validated by some
experimental programs, which provides an approach for recovering database manually.
Key words: data page;data title;record;record offset array
修复一个受损的结构化查询语言 (SQL)数据库,可以利用 SQL Server 自身的修复机制。但当 SQL 数据库损
坏严重时,比如某张表的位置刚好在磁盘的坏道上,数据库的数据不
显示全部