Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Create View from Linked Server

Author  Topic 

giszzmo
Starting Member

29 Posts

Posted - 2014-12-17 : 14:24:32
Hi, I am wondering if there is a way to create a view that uses two tables coming from a linked server without using any UNIONs or JOINs? If anyone can please point me in the right direction.

Thanks,
Jake

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2014-12-17 : 16:25:59
A view has to return one result set. SO, you would need a union or a join or some sort. Mind you, this is technically not a join:

select a
from b
where a in (select b from b)

but would be OK in a view, if that's what you want.
Go to Top of Page
   

- Advertisement -