Query Parameters Dialog Box (Visual Database Tools)

This dialog allows you to enter values for the parameters defined in the query. This dialog box appears when you execute a query that contains parameters that require end-user input at run time.

Options

  • Name
    Lists the parameters defined for the query being executed. If the query contains named parameters, the names appear in the list. If the query contains unnamed parameters, system-defined parameter names are listed for each parameter in the query.
  • Value
    Enter the value for each parameter listed under Name. The value used most recently appears as the default parameter value.

Example

The following query in the SQL Pane, opens the Query Parameters dialog box when executed in the AdventureWorks database.

SELECT   FirstName, LastName
FROM    Person.Contact AS Lastname
WHERE   (LastName = @Param1);

See Also

Other Resources

Querying with Parameters (Visual Database Tools)

Help and Information

Getting SQL Server 2005 Assistance