我的数据库是sql server 2005 的.
  
 use master
exec sys.sp_dboption whtai,'select into/bulkcopy',false
运行成功.可是运行下面的语句也成果,我都设置了false怎么还能
通过.
use whtai
select * into sp6 from student where 1=2那位高手解释一下.我看了一下sys.sp_dboption 的存储过程.好像是碰到'select into/bulkcopy'就转换成了."recovery"
不知道怎么回事.

解决方案 »

  1.   

    Starting with Microsoft SQL Server 2000, if the recovery model of the database is currently set to FULL, using the select into/bulkcopy option resets the recovery model to BULK_LOGGED. 在 sql server 2000 中,如果数据库的恢复模式是完全,则通过 select into/bulkcopy 选项可以将数据库的恢复模式更改为大批量日志记录。如同 alter database dbname set recovery bulk_logged 语句。
      

  2.   

    但是恢复模式的更改跟select into/bulkcopy有什么联系.
    我设置select into/bulkcopy 是是不d让在这个数据库上运行select * into sp6 from stuent where 1=2 跟恢复模式有什么区别.
      

  3.   

    select into/bulkcopy 选项与禁用 select into 语句没有任何关系。select into/bulkcopy 选项是将数据库的恢复模式设置为 bulk_logged。
      

  4.   

    问题一:
    use master
    exec sys.sp_dboption whtai,'select into/bulkcopy',true/false
    我运行了上面的语句,不管是最后一个参数是true还是false.如果数据库的恢复模式是simple.这个语句并不起作用.为什么----------
    问题二:
    既然select into/bulkcopy 选项与禁用 select into 语句没有任何关系.那用什么方法可以在一个数据库上禁用 select into 
      

  5.   

    问题一: 上面已经说的很清楚了,select into/bulkcopy 选项是将完全恢复模式更改为大批量日志记录模式。问题二: 据我所知没有。如果有其他高手知道,请不吝指教。