MS SQL Code Factory online Help
Prev | Return to chapter overview | Next |
Queries and Scripts
![](/i/tour-under-title.gif)
MS SQL Code Factory provides several tools for working with SQL queries and scripts:
• | SQL Editor for editing the query text directly and executing SELECT queries; |
• | Visual Query Builder for building SELECT, INSERT, UPDATE and DELETE queries visually. |
Both SQL Editor and Visual Query Builder supports parameters in queries
Save frequently used queries to profiles and manage them in the same way as if they were database objects. This means that you can view queries in the explorer tree, use them in BLOB Viewer and Diagram Viewer, perform drag-and-drop operation upon them, and copy them to clipboard like you copy an object.
How can I create a new SQL query?
New queries can be created either in SQL Editor or in Visual Query Builder.
To create a new query in SQL Editor:
To create a new query in Query Builder:
|
How can I save a query to a file/profile?
To save an existing query from the editor:
|
How can I edit an existing SQL query?
Queries can be opened either in SQL Editor or in Visual Query Builder.
You can open the query directly from the Explorer tree with a double click or using popup menu. By default it will be opened in SQL Editor.
To edit a query from file, open SQL Editor (the Tools | SQL Editor main menu item) and use Load From File from the Navigation Bar of SQL Editor to load a query from an *.sql file.
To edit a query in Query Builder, open the builder (the Tools | Visual Query Builder main menu item) and then perform one of the following operations:
On the Query Builder opening the Diagram tab contains the last edited query. |
How can I execute an SQL query?
To execute a query:
|