Seems in SQL Server 2005 there is a way to link to other Databases like Oracle,DB2 for extracting data through LinkedServer.
Once you add them as a Linked server, later you can write queries like how you use to write in SQL Server.
Syntax:
EXEC sp_addlinkedserver
server='LINKEDDB2NAME',
@srvproduct='Microsoft OLE DB Provider for DB2',
@catalog='DB2',
@provider='DB2OLEDB',
@provstr='Initial Catalog=PUBS;Data Source=DB2;HostCCSID=1252;Network Address=SOME;Network Port=50000;Package Collection=admin;Default Schema=admin;'
To check:
SELECT * FROM LinkedServer.Catalog.Schema.Table
Related Links:
To know more on Linked Sever : http://msdn.microsoft.com/en-us/library/ms190479.aspx
Defining a DB2 as a linked server in SQL Server 2005: http://blogs.msdn.com/dotnetinterop/archive/2006/01/20/defining-a-db2-as-a-linked-server.aspx
Hope it helps...
Regards
Fauzi