View Single Post

   
  #3 (permalink)  
Old 02-28-2008, 07:14 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Alternative to Creating View with Union in two databases?

Matt D (mattd@semiconductor.com) writes:
> I attempted to create a view in SQL Server 2000 that Unions two
> queries. The first part of the query gets data from the local server,
> the second part gets info from a linked server. (The query works fine
> in Query Analyzer.)
>
> I received this error when I tried to save the query:


I had no problems to create a view spanning two servers.

Since you talk about saving query, I get the idea that you might
be using Enterprise Manager for the task. Try running the CREATE VIEW
statement from Query Analyzer instead.

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Reply With Quote