恐怕不是数据库A/B,是表A/B吧?
insert into 表A select * from 表B where title<>topic

解决方案 »

  1.   

    反了.
    insert into 表B select * from 表A where title <>topic
      

  2.   

    insert into 表B select * from 表A where title <>topic
      

  3.   

    如果在一个serverinsert into 库A..表A select * from 库B..表B b where not exists (
      select 1 from 库A..表A a a.title =b.topic
      )
      

  4.   

    如果是不同数据库:
    use 库B
    insert into tb select * from 库A..tb where title <>topic
      

  5.   

    哦,反了insert into 库B..表B select * from 库A..表A a where not exists (
      select 1 from 库B..表B b a.title =b.topic
      )
      

  6.   

    如果在不同server,如果能够连通,则需要在B建立一个连接到A的链接服务器insert into 库B..表B select * from linkserverA.库A.dbo.表A a where not exists (
      select 1 from 库B..表B b a.title =b.topic
      )
      

  7.   

    如果两个server不连通,则需要考虑异步拷贝的方法,不罗嗦了
      

  8.   

    数据量大的话,还是用bcp来导吧。
      

  9.   

    还有个问题。 源,和目标字段属性不一样。  源是ntext, 目标是int,转不过到。直接转也不行。