MarkMarkov
IS-IT--Management
Is is possible to set the servername, database and table at runtime and then do a select using that setting? In other words, something like:
declare @r varchar
set @r = "server.databasename.dbo.table"
select * from @r
declare @r varchar
set @r = "server.databasename.dbo.table"
select * from @r