How to execute SQL statements in dbForge Studio fo SQL Server

This topic shows different ways of executing statements in dbForge Studio.

Entire script

To execute an entire script, click the Execute button on the SQL toolbar.

Alternatively, on the SQL menu, select the Execute command.

Selected block of text

To execute an arbitrary text block:

  1. Select the text block using the mouse or keyboard.
  2. Run the Execute command as when executing the entire script. Alternatively, select Execute Selection from the shortcut menu of SQL Editor.

Current statement

To execute your current statement, click the Execute Current Statement button on the SQL toolbar.

Alternatively, right-click a required statement, and select the Execute Current Statement command on the shortcut menu.

Execute to cursor

To execute a script to the current position of the cursor:

  1. Move cursor to the required position.
  2. Click Execute to Cursor on the shortcut menu or press Ctrl+Shift+F10.

How to execute SQL statements

How to stop the execution

To stop SQL execution, click Stop Execution the SQL toolbar.

Present query execution results

Query execution results can be presented in two ways - in text and in grid formats.

To present results as text, click Results as Text on the SQL toolbar before query execution.

To present results as a grid, click Results as Grid on the SQL toolbar before query execution.

How to execute SQL statements

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Studio for SQL Server.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for SQL Server?