第一个问题不懂
第二个字面上的意思是:不能把一个文件紧缩到比它实际占用的数据空间更小(也就是说并没有执行压缩操作),也不能超过在CREATEDATABASE语句中SIZE参数指定的大小。
也许Shrink是指缩放吧,如果是这样的话,第一个问题就好解释了

解决方案 »

  1.   

    头晕
    shrinkdatabse和shrinkdatabasefile这两个单词我就看的眼花了,CSDN用的什么字体?
      

  2.   

    分析一下“2.xls”、“csdn.css”。还是“宋体”!
    用“大字体”比较好!
    <a href="javascript:changeFontSize('12px','17px');"><font color="#ffffff">小字体</font></a> | 
    <a href="javascript:changeFontSize('15px','20px')"><font color="#ffffff">大字体</font></a> | 
      

  3.   

    楼上的你说什么呢
    哥们,是不是下面这段话Assume a database named mydb with two data files and two log files. Both data and log files are 10 MB in size. The first data file contains 6 MB of data.For each file, SQL Server calculates a target size, which is the size to which the file is to be shrunk. When DBCC SHRINKDATABASE is specified with target_percent, SQL Server calculates target size to be the target_percent amount of space free in the file after shrinking. For example, if you specify a target_percent of 25 for shrinking mydb. SQL Server calculates the target size for this file to be 8 MB (6 MB of data plus 2 MB of free space). Therefore, SQL Server moves any data from the last 2 MB of the data file to any free space in the first 8 MB of the data file and then shrinks the file.
    注意,你看错了,msdn上的意思是
    假设原database的大小为10mb,
    压缩百分比为25,这里的25是相对压缩后的数据库大小而言的
    shrinkdatabase语句的执行效果是这样的:原来数据库大小=压缩后的数据库大小+压缩后的数据库大小*压缩百分比!!!
    并且,压缩后的数据库大小不能比
    数据库中的数据所占的空间小,确切的将不是压缩,而是将空白空间
    移去!!!并且压缩后的数据库大小也不能比数据库的初始大小更小。所以10mb的数据库,压缩百分比为25,剩下的是8mb,其中6mb的data,2mb的freespace
    而且数据库文件分为data和log,
    log文件的压缩情况略有不同,msdn上也有介绍。
      

  4.   

    另外,sql server版的也替你回答了,一块结了吧!!呵呵