exec ('
Declare @Co int
declare @name table(id Int)
Insert into @name select id from sysobjects
Select @Co=Count(1) From sysobjects
set rowcount @Co
select * from @name
set rowcount 0')
Declare @Co int
declare @name table(id Int)
Insert into @name select id from sysobjects
Select @Co=Count(1) From sysobjects
set rowcount @Co
select * from @name
set rowcount 0')
Select @Co=Count(1) From sysobjects
exec ('
declare @name table(id uniqueIdentifier)
Insert into @name select id from sysobjects
select top '+@Co+' * From @name
')
Declare @Co int
declare @name table(id Int)
Insert into @name select id from sysobjects
Select @Co=Count(1) From sysobjects
select top @Co * from @name
')