select * from Databasename1.dbo.tblEmployees t1
inner join OPENDATASOURCE('SQLOLEDB','Data Source=databasename;User ID=sa;Password=123').Databasename2.dbo.leave t2 on t1.Id = t2.Id
Wednesday, December 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment