Learn more about Toad for SQL Server Find solutions and downloads at the |
< To bookmark a page, right-click the Page Title and select Add to Favorites / Bookmark This Page |
Toad for SQL Server 5.7 |
The editor combines a powerful SQL and procedure editor and debugger into a single interface.
Notes:
To edit SQL
Click on the toolbar (CTRL+N).
Review the following to help enter SQL:
Click to format the code. See Format SQL for more information.
Select the block of code in the Editor, and click to validate the syntax.
Note:Toad undoes any changes to the object and data in the database after executing the script (notice that the Result Sets tab is empty). To modify the object and data, you need to execute the script.
Debug code. See About Debugging SQL for more information.
Click to execute SQL on the current server or multiple
servers at one time.
To tune SQL, right-click a statement in the Editor and select Optimize the Current Statement (available if you purchased a version of Toad that includes the SQL Optimizer). If you have not purchased this version, you can tune the statement by right-clicking it and selecting Analyze in Database Engine Tuning Advisor.
Toad automatically saves a backup copy of any modified editor file in the Application Data Directory to avoid losing your work. When you restart Toad after an unexpected close, Toad checks the timestamp on the backup file against the original file, and opens the file that has the latest timestamp. The document recovery option is in Tools | Options | Environment | General. See General Environment Options for more information.
Editor supports floating window mode.
To... |
Use this Option Page... |
---|---|
Display the tabs for the current connection only when using Tabbed windows |
Environment | Interface |
Set options to display line numbers, line modifications, and general text formatting |
Editor | General |
Specify options to automatically replace typed text with the correct substitution text |
Editor | Auto-replace |
Customize code formatting options including headers and layout characteristics |
Editor | Formatter |