DECLARE @_PageSize INT
SET @_PageSize = 10
exec ('SELECT TOP ' + cast(@_PageSize as varchar(10)) + ' CustomerID FROM Customers')