Condividi tramite


Open the Query and View Designer (Visual Database Tools)

si applica a:SQL Serverdatabase SQL di AzureIstanza gestita di SQL di Azure

The Query and View Designer opens when you open the definition of a view, show the results for a query or view, or create or open a query. È costituito da quattro riquadri separati:

  • Il riquadro Diagramma presenta una visualizzazione grafica delle tabelle o degli oggetti con valori di tabella selezionati dalla connessione dati. It also shows any join relationships among them.

  • Il riquadro Criteri consente di specificare le opzioni di query, ad esempio le colonne di dati da visualizzare, come ordinare i risultati e le righe da selezionare, immettendo le scelte in una griglia simile a un foglio di calcolo.

  • È possibile usare il riquadro SQL per creare un'istruzione SQL personalizzata oppure usare il riquadro Criteri e il riquadro Diagramma per creare l'istruzione, nel qual caso le istruzioni SQL verranno create nel riquadro SQL. Durante la compilazione della query, il riquadro SQL aggiorna e riformatta automaticamente per essere letto facilmente.

  • Il riquadro Risultati mostra i risultati della query Select eseguita più di recente. I risultati di altri tipi di query vengono visualizzati nelle finestre di messaggio.

  • These panes are useful for working with both queries and views.

  • When you open a view or query some or all of the panes open with it. Quelli aperti dipendono dalle impostazioni della finestra di dialogo Opzioni e dal sistema di gestione del database a cui si è connessi. Il valore predefinito è che tutte e quattro si aprono.

To open the Query and View Designer for a view

  1. In Object Explorer, right-click the view you want to open and click Design or Open View.

    If you chose Design, the Query and View Designer panes open as dictated by the options selected in the Options dialog box. Se si sceglie Apri visualizzazione, viene aperto solo il riquadro Risultati per impostazione predefinita.

To open the Query and View Designer for an existing query

  1. In Esplora Soluzioni, espandi la cartella Query.

  2. Fare doppio clic sulla query che si desidera aprire.

  3. Highlight the query statement(s), right-click the highlighted area and click Design Query in Editor.

Vedere anche

Design Queries and Views How-to Topics (Visual Database Tools)
Query and View Designer Tools (Visual Database Tools)