select * into 新表 from 旧表

解决方案 »

  1.   

    select * into 新表 from 旧表 where 1=2
      

  2.   

    好像不行呀!在查询分析器中运行上面的语句,出现下面的提示。
    Server: Msg 268, Level 16, State 3, Line 1
    Cannot run SELECT INTO in this database. The database owner must run sp_dboption to enable this option.
    怎么办呀,帮帮我!
      

  3.   

    to: zjcxc(邹建)
    我需要在程序中实现上述功能。前提是只知道表名,要动态的产生一个结构
    完全一样的新表。