SQL Prompt Feature Suggestions
Welcome to the SQL Prompt feature suggestion list. Find out more information about SQL Prompt at http://www.red-gate.com/products/sql-development/sql-prompt/.
If you have any questions, need help or have found a bug in SQL Prompt, please visit the forums at http://www.red-gate.com/messageboard/viewforum.php?f=137.
-
SQL Tab Magic - When searching query history the text in the preview pane jumps to the left
Hi,
First, I like the new design, and thank you for make it available for SSMS 2012.
I have 2 problems:
1. I missing the Option button (I don't wont it to open recently closed queries on start-up).
2. When I'm searching for term in the Query History dialog, and hovering above one of the files in the left pane, its query text in the preview pane jumps to the somewhere in the file and move a bit to the left. I assumes it suppose to jump to the first match, but, it is not always even in the frame.…1 vote -
Recognize double quotes for object names in the same way as square brackets.
Please enable SQL Prompt to have the same behavior with double quotes as with square brackets.
For example, typing:
SELECT * FROM [MyTable]
will allow the expansion of the asterisk, while
SELECT * FROM "MyTable"
does not.SET QUOTED_IDENTIFIER is ON by default. Also, many Oracle "converts" use the format "SchemaName"."TableName".
2 votes -
Indent Nested Join Statements
When running the formatting, it provides consistency across developers. To make the SQL statements easier to read, the nested JOIN statements should be further indented.
Currently format makes the nested joins look like:
SELECT *
FROM A
INNER JOIN B
ON A.Aid = B.Aid
LEFT OUTER JOIN C
INNER JOIN D
ON D.Cid = C.Cid
ON C.Aid = A.AidThe following allows seeing the nested joins easier:
SELECT *
FROM A
INNER JOIN B
ON A.Aid = B.Aid
LEFT OUTER JOIN C
INNER JOIN D
ON D.Cid = C.Cid
ON C.Aid = A.Aid6 votes -
Execute current statement using shortcut
Devart SQL Complete has this incredibly useful feature to execute current statement using a keyboard shortcut. I believe it's CTRL+Shift+E. Sql Prompt needs this. It's a major time saver!
3 votes -
1 vote
-
Add Excel Like Gripd To Results Options
Add to the Results To options an Excel Like grid that presents the results i8n a grid but allows for Excel like functuionality without re-executing the query.
I often am sending my data (via copy & paste) to Excel for aditional reserahc because the query takes a long time to run and I alrady have the core data I needd, I just need to fin tune it bu re-sorting or even re-aggregating the data differently.
It wulod be a killer plus if Microsoft simply reaplced the existing SSMS Grid with a mini-version of Excel but since Thats not likely any…
3 votes -
Aliases for Select Top 1000
When I right-click on a table and "Select Top 1000 Rows" or "Edit Top 200 Rows", the query should include an alias on the table and have that alias on each row.
This will make it easier to join tables when some column names overlap.
3 votes -
It would be helpful if field aliases were aligned on the right side...
For example:
SELECT fieldA AS aliasA,
fieldB AS aliasB,
fieldC AS aliasC,
..etc...(pretending all the "as" words were lined up and the sql was in a constant width font.)
Or to add a feature similar to CodeAlignment (http://www.codealignment.com/ForVisualStudio.html)
that would allow a users to align by character.1 vote -
convert SQL to a vbb (or c#) string statement
in toad you can get it to convert a SQL statement into a VB or C# statement. i.e. if you have
select * from atable
where a = 'FREE'this would be converted to
SQL = "select * from atable"
sql =sql & "where a = 'FREE'"this is then pasted into the clipboard
it can also do the reverse, have a chunk of VB code with a SQL statement, past it into the window, highlight it and it will try and convert it back to straight SQL (do not worry about variables added into the the vbcode, even toad…
4 votes -
Unwrap sp_executesql
Frequently I need to debug application generated SQL obtained via Profiler. Parameterized queries are often implemented with sp_executesql.
I love using Format SQL to make a single line monster query into something I can actually read. But when it's stuck in an sp_executesql call the format function doesn't touch it. I have to:
Remove "Exec sp_executesql".
Remove the apostrophes around the query SQL. For big queries this is really painful, especially if the query itself contains apostrophes.
Remove the apostrophes around the parameter defenitions.
Move the parameter definitions to the top and add a DECLARE.
Move the parameter value assignments…4 votes -
Auto-complete for PK column values. Example: SELECT * FROM dbo.EmployeeType WHERE EmployeeTypeId = '667A29F4-B736-4209-9B0F-0CB564DC6430'
Auto-complete for PK column values.
Benefits:
Would enable easier navigation in static tables while coding, especially for GUID PKs.Example:
SELECT *
FROM dbo.EmployeeType
WHERE EmployeeTypeId = '667A29F4-B736-4209-9B0F-0CB564DC6430'When typing the "=" character (after the EmployeeTypeId) a list of rows to select from is displayed:
EmployeeTypeName CreatedBy CreatedOn
Permanent JoeBlo 20/05/2013
Contract JohnDoe 20/05/2013When a row is selected in the popup, the correct PK key value is returned.
3 votes -
Add an option to Summarize script to show not only the main table, but also all other joined tables
Add an option to Summarize script feature to show not only the main table, but also all other joined tables
For example with option off (current release)
select from tablea
update tableb
delete from tablecTurning option on would result in
select from tablea
join tablex
update tableb
join tablex, tablec, tablej
delete from tablec
join tableb3 votes -
Visual Studio-style selection of tokens...
Would it be possible to implement a Visual Studio-like selection of tokens? That would mean, if we have a name like, say, [ThisIsATable_WithAnUnderscore] and I wanted to select via Shift-Ctrl+Left Arrow the term 'WithAnUnderscore' the selection would be expanded not to encompass the whole identifier but only up to the next capital letter or underscore. It would be really helpful as it is in Visual Studio. Thanks for you outstanding creations! :)))
3 votes -
Blank line after "AS"
When formatting the SQL, could we have or leave a blank line after the "AS" keyword. I normally put a blank line after the word for readability but everytime I do a format, it takes the line away.
Thanks,
Tom
1 vote -
Unformat SQL
It would great if there was an un-format SQL command, which would basically un-format the SQL by removing all the carriage returns, tabs, extra spaces, etc. I know it seems odd, but we have several applications that use the SQL via external files, so the formatting will not work, and we end up manually removing all the formatting.
3 votes -
snippets get preferential treatment to object names (and include in "intellsense")
Give preferential treatment to snippets. I use "stop" (select top 10 * from), but I have a database with the word "stop" in it. When I type stop the only thing that shows up in the suggestion list is the object. The snippet isn't even listed.
My preference would be for the snippet to come up first, then I could arrow down if I want the object. Alternatively, include the snippet in the list of suggestions.
1 vote -
Format CTEs to keep the semicolon on the same line as the "With"
When you format:
SELECT x from y
;WITH NumberSequence ( MonthNumber )
AS ( SELECT 1 AS MonthNumber
UNION ALL
SELECT MonthNumber + 1
FROM NumberSequence
WHERE MonthNumber < 12
)You move the semicolon to the end of the previous command instead of leaving it with the CTE and remove the blank line:
SELECT x from y;
WITH NumberSequence ( MonthNumber )
AS ( SELECT 1 AS MonthNumber
UNION ALL
SELECT MonthNumber + 1
FROM NumberSequence
WHERE MonthNumber < 12
)Should leave the blank line and semicolon where they are.
Thanks,
Tom
5 votes -
Create CRUD
Create a Select/Update/Insert/Delete procedure by rightclick a table.
With option to select columns for each statement.
3 votes -
Convert code to dynamic Code
Convert selected CODE or a complete stored procedure to Dynamic SQL Code.
6 votes -
option to disable "automatically ignoring closing characters" such as ' ) ] "
When you try to add a quote in FRONT of an existing quote, it is ignored and the cursor just moves over the existing one.
It is very frustrating, especially when working with dynamic queries where multiple ' quotes might be required. You end up having to go back and count the number of quote characters on both sides to make sure none were missed.This happens with closing brackets too, but is especially annoying with single-quotes, since they are also used as opening characters.
Please provide an option to disable this unwanted feature.
6 votes
- Don't see your idea?