Rediģēt

Kopīgot, izmantojot


Run Queries (Visual Database Tools)

Applies to: SQL Server

When you have finished designing your query, you can run it.

To execute a query

  1. Open or create the query you want to run.

  2. Right-click anywhere in the query window, and select Execute SQL from the shortcut menu.

    -or-

    Press CTRL+R.

If you are creating a Select query, the results of the query appear in the Results pane.

The Query and View Designer returns results to your computer in batches (incrementally) so that you can begin viewing results as soon as possible, and so that you can perform other tasks while the query is underway.

If you are creating an Update, Insert From, Insert Into, Delete, or Make Table query, the Query and View Designer displays a message indicating how many rows were affected by the query.

See Also

Work with Data in the Results Pane (Visual Database Tools)
Perform Basic Operations with Queries (Visual Database Tools)