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.

How can we improve SQL Prompt?

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  1. 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
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  SQL Tab Magic  ·  Flag idea as inappropriate…  ·  Admin →
    • 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
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Qualify Object Names  ·  Flag idea as inappropriate…  ·  Admin →
      • 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.Aid

        The 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.Aid

        6 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          1 comment  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
        • 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
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • 1 vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              1 comment  ·  Flag idea as inappropriate…  ·  Admin →
            • 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
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • 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
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Graphical User Interface  ·  Flag idea as inappropriate…  ·  Admin →
                • 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
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                  • 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
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • 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
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                      • 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/2013

                        When a row is selected in the popup, the correct PK key value is returned.

                        3 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  Intellisense  ·  Flag idea as inappropriate…  ·  Admin →
                        • 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 tablec

                          Turning option on would result in

                          select from tablea
                          join tablex
                          update tableb
                          join tablex, tablec, tablej
                          delete from tablec
                          join tableb

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Summarize Script  ·  Flag idea as inappropriate…  ·  Admin →
                          • 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
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Intellisense  ·  Flag idea as inappropriate…  ·  Admin →
                            • 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
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                              • 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
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                                • 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
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    2 comments  ·  Intellisense  ·  Flag idea as inappropriate…  ·  Admin →
                                  • 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
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Create CRUD

                                      Create a Select/Update/Insert/Delete procedure by rightclick a table.

                                      With option to select columns for each statement.

                                      3 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Convert code to dynamic Code

                                        Convert selected CODE or a complete stored procedure to Dynamic SQL Code.

                                        6 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                                        • 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
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 6 7 8 9 10 11 15 16
                                          • Don't see your idea?

                                          Feedback and Knowledge Base