I have a SQL Script with the following line
declare @input varchar(20)
Select * from Employees where [dept] = @input
What I want is When I execute the above script in SQL 2005 I want to prompt for an input By opening an inputbox etc., such that the value is accepted in '@input' variable and so the user retrieves the records giving dynamic inputs.