Ver originalDECLARE @base1 AS VARCHAR(255)DECLARE @base2 AS VARCHAR(255)DECLARE @qry VARCHAR(1000) SET @qry = 'select * from '+@base1+'.dbo.tabla1'