SQL 2K   不支持
SQL 2k5  小梁说支持那就肯定支持

解决方案 »

  1.   

    这么快就回了,好的,谢谢在问个问题
    EXEC master..xp_cmdshell 'bcp test2.dbo.tabletest out c:\temp1.xls -c  -S"yang-b4c206e6a1" -U"sa" -P""'无密码
    这条语句有什么问题,执行总出下面的错
    CTLIB Message:  - L5/O3/S5/N4/5/0:
    ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed
    Establishing connection failed.
    NULL
      

  2.   

    2005新的功能
    EXCEPT and INTERSECT (Transact-SQL)
    http://msdn.microsoft.com/en-us/library/ms188055.aspx
      

  3.   

    except 可换成 and not exists
    intersect 可换成 and exists
    例:
    差集select * from sc where c#=001
    and not exists
    (select * from sc where c#=002)
    并集
    select * from sc where c#=001
    and exists
    (select * from sc where c#=002)