what 报表 are you using? 1. fetch the data from multiple datasources into a DataSet, merge the data if necessary, use the DataSet as the DataSource for your 报表
http://www.codeproject.com/aspnet/crystal_report.asp2. use sp_addlinkserver in SQL Server to add link servers to those other databases, then do a joint query in your sql server to fetch all the data at once

解决方案 »

  1.   

    为“来源于多个数据库(有sql server, oracle, db2)的多个表”都生成一个DataTable(通过适配器绑定),再动态生成一个合并了的DataTable,最后把你的报表绑定到这个DataTable上。
      

  2.   

    视图 ?? ejiue(鳕泶) 说的不错.
    to zhpsam109(孤寂无边), 我也没办法。需要。
      

  3.   

    在 SQL Server 中可在增加连接服务器,你把 ORACLE 和 DB2 服务器都连接进来。
    然后就可以在一个数据库里通过建立视图的方法把这些数据连接到一起。
    当然你也可以使用储蓄过程。
      

  4.   

    应该说,你把A.f1,A.f2从数据库A中Select出来放入DataSet中的A1表,把B.f3从B中Select出来放入DataSet中的B1表,C.f4从C中Select出来放入DataSet中的C1表 ,然后对DataSet进行操作,就可以像是对一个数据库进行操作了!~试试
      

  5.   

    还是都放进DatSet里方便些,在SQL Server 中可在增加连接服务器的方法没用过,估计很麻烦,还要对数据进行操作,放到DatSet直接写代码就行.