Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
You can copy the body of a query into a new query to use as a starting point.
Copy a query
From the View menu, select Solution Explorer.
In Solution Explorer, right-click the query you want to copy and from the shortcut menu choose Open.
In the SQL pane, copy the portion of the query you want to copy.
Create a new query or open the query where you want to paste the copied SQL.
Position the cursor where you want to add the SQL code.
Right-click and from the shortcut menu select Paste.