I\'m using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined resu
(Copying key parts of @Roni's answer)
create procedure dbo.xxx as set nocount on ...