CREATE PROCEDURE GetGuestBook
@pages int
AS
EXEC('select top '+CAST(@pages AS VARCHAR(20))+'* from guest_book')
GO