declare @server nvarchar(200)
declare @strsql nvarchar(2000)
declare curs1 cursor for select datasource from master..sysservers
open curs1
fetch next from curs1 into @server
while @@fetch_status=0
begin
set @strsql='select * from '+@server+'.master.dbo.sysusers'
--set @strsql=@server+'.master..sp_who2'--proc version
exec @strsql
fetch next from curs1 into @server
end
close curs1
deallocate curs1