Hi all, I am very new to SQL and I have a simple question for queries. I am writing a query similar to the one below, which executes fine, however, I would like it to give me the option as to which parameters to include when it's being executed. I have seen it done before but not too sure how. ie; when you hit execute, you get a tick box pop up allowing to choose which parameters appear in the table . I think it has something to do with '@parameter' but I don't know the syntax.Can anyone please help?SELECT TOP 100 [id] ,[status] ,[locationid] ,[operator] ,(startdate + '5:00:00') AS _startDate ,(enddate + '5:00:00') AS _endDate ,[duration] FROM [books].[dbo].[telephones]WHERE startdate > 2011-10-10SORT BY _startDate asc