SQL Prompt

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=169.

How can we improve SQL Prompt?

(thinking…)

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

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

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

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

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Bulk Format

    In the Object Explorer window when viewing stored procedures/views/functions etc, I think it would be really useful to be able to select multiple objects and have a context menu option that would generate formatted ALTER scripts, thus allowing somebody to update all T-SQL into the desired format.

    Currently, when you have multiple objects selected you are unable to use the "Script xx as - ALTER to" option meaning you would have to either use the CREATE to option and amend to an ALTER, or use the DROP and CREATE to option, which would remove any permissions set against the object.

    1 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)

      We’ll send you updates on this idea

      1 comment  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
    • Select content of a block comment

      I will often use a block comment /* */ around code in the current script that I don't want to execute by default when I press F5. To execute the code in the block comment, I must select the content of the block comment and press F5.

      This is inefficient with the keyboard for comment blocks that are many lines of code: Locate the top of block comment, hold SHIFT, DOWN-DOWN-DOWN-etc..., F5)

      My suggestion is to allow CTRL-A (or similar) to select the content of the block content that the cursor is currently in. Followed by F5, this would execute…

      1 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)

        We’ll send you updates on this idea

        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • More options for lists in Format SQL

        separate options for formatting different types of lists, which are currently all formatted with the same settings:
        * parameters when defining a function
        * parameters when calling a function
        * select
        * insert column list

        Option to always put a newline after a multi-line case statement. e.g.
        select o.name, o.object_id, o.principal_id, o.schema_id, o.parent_object_id, o.type, o.type_desc
        , friendly_object_type = case o.type
        when 'S' then 'system table'
        when 'D' then 'default'
        when 'V' then 'view'
        end
        , o.create_date, o.modify_date, o.is_ms_shipped, o.is_published, o.is_schema_published
        from sys.objects o
        order by friendly_object_type

        instead of

        select o.name, o.object_id, o.principal_id, o.schema_id, o.parent_object_id, o.type, o.type_desc
        , friendly_object_type = case…

        1 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)

          We’ll send you updates on this idea

          0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
        • Add option to default time to either UTC or local when expanding parameter lists.

          I would like to see an option to default times to either UTC or local time when expanding stored procedure parameter lists. Many larger companies are distributed across time zones and use UTC rather than local time but the vastly more numerous smaller organizations operating in a single location, generally use local time. Having to manually edit all the times in a parameter list somewhat limits the value of default values.

          1 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)

            We’ll send you updates on this idea

            0 comments  ·  Intellisense  ·  Flag idea as inappropriate…  ·  Admin →
          • Align parameter assignments in sproc calls

            There is a lot of excellent alignment logic in the SQL Prompt formatting tool but we notice it is not implemented on parameter assignments in sproc calls. For example, in the statement below we think it would look better and be easier to read if all the equal signs were aligned as is done in DECLARE and other statement types.

            exec @errorNo = dbo.pPersonMailingAddress#Update
            @PersonMailingAddressSID = @PersonMailingAddressSID
            ,@PersonSID = @PersonSID
            ,@StreetAddress1 = @StreetAddress1
            ,@StreetAddress2 = @StreetAddress2
            ,@StreetAddress3 = @StreetAddress3
            ,@CitySID = @CitySID
            ,@PostalCode = @PostalCode
            ,@RegionSID = @RegionSID
            ,@EffectiveTime = @EffectiveTime;

            1 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)

              We’ll send you updates on this idea

              0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
            • Remove empty lines after single line statements

              We really like the ability to collapse if statements to a single line when short but we'd prefer the addition of a general option to suppress empty lines between one line statements. For example today we get:

              -- check parameters
              if @FormRecordSID is null set @blankParm = '@FormRecordSID';

              if @FormSchemaName is null set @blankParm = '@FormSchemaName';

              if @FormTableName is null set @blankParm = '@FormTableName';

              if @FormDefinition is null set @blankParm = '@FormDefinition';

              if @Response is null set @blankParm = '@Response';

              and we would prefer:

              -- check parameters
              if @FormRecordSID is null set @blankParm = '@FormRecordSID';
              if @FormSchemaName is null set…

              1 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)

                We’ll send you updates on this idea

                0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
              • Align inline comments at a consistent guideline column

                Inline comments are easier to read when they all begin at the same guideline point. Today the formatting of inline comments is ragged. For example:

                select .... -- my comment here

                update some stuff ... -- another comment here

                set @myVar = 5 -- and another one here

                We would like to see an option that allows you to specify one column (or possibly a max of 3) that the tool uses to align all inline comments starting at the same column. e.g. column 75, 101 and 131 is where we currently have guidelines in our editor. We align the…

                1 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)

                  We’ll send you updates on this idea

                  0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                • Empty Line Above and Below Comment Lines

                  We prefer to see comments separated from the code below them by an empty line. Please add an option for that.

                  Example:

                  -- where a previous address exists and is unchanged,
                  -- update the verified time only

                  if @oldCheckSum = @newCheckSum
                  begin
                  exec @errorNo = dbo.pPersonMailingAddress#Update
                  @PersonMailingAddressSID = @PersonMailingAddressSID
                  ,@LastVerifiedTime = @now;
                  end;

                  instead of:

                  -- where a previous address exists and is unchanged,
                  -- update the verified time only
                  if @oldCheckSum = @newCheckSum
                  begin
                  exec @errorNo = dbo.pPersonMailingAddress#Update
                  @PersonMailingAddressSID = @PersonMailingAddressSID
                  ,@LastVerifiedTime = @now;
                  end;

                  1 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)

                    We’ll send you updates on this idea

                    0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                  • Empty Line Before and After Multi-Line Statements

                    Complex multi-line statements are much easier to read when separated by an empty line above and below them. Please add an option to turn on "Empty Line Above/Below Multi-Line Statements".

                    1 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)

                      We’ll send you updates on this idea

                      0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                    • Find Invalid Objects In - Instance and Database drop lists need to be wider to see entire name

                      Instance and Database drop lists need to be wider to see entire name

                      1 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)

                        We’ll send you updates on this idea

                        0 comments  ·  Find invalid objects  ·  Flag idea as inappropriate…  ·  Admin →
                      • Combine styling and options

                        Currently, you can have a style that can be shared across team members. There are still Options you must set that are not included in the style. It would be easier to share if the SQL Prompt - Options were included in the Style definition.

                        Qualification is a good example and often a cause of t-SQL not performing as expected with subselects.

                        1 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)

                          We’ll send you updates on this idea

                          1 comment  ·  User interface  ·  Flag idea as inappropriate…  ·  Admin →
                        • Add support for localised English language variants

                          I live in the UK. I use British English, not US English.

                          Please support my locale and that of other English speaking users who are in the USA.

                          Thanks!

                          1 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)

                            We’ll send you updates on this idea

                            0 comments  ·  User interface  ·  Flag idea as inappropriate…  ·  Admin →
                          • Format CTAS & CRTAS and other APS/PDW commands

                            Please add the "create table xxx with (distribution = ...) as (select ...) as valid so I can use CTRL-K/Y to format code.

                            Also any other APS/PDW key words that don't exist in "regular" SQL Server.

                            Thanks

                            1 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)

                              We’ll send you updates on this idea

                              0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                            • Tab coloring/colouring - settings file

                              I use SQL Prompt from different machines, and have been able to standardise my customisation by storing the snippets file and the styles in a central accessible location (e.g. Dropbox, Google Drive, OneDrive etc).

                              Please make the tab colouring have a similar feature so that I can share the settings across different machines.

                              1 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)

                                We’ll send you updates on this idea

                                0 comments  ·  Tab coloring  ·  Flag idea as inappropriate…  ·  Admin →
                              • I'd like the ability to have the subsequent conditions of a JOIN right align with the first word of the JOIN clause.

                                For example, when I have an INNER JOIN, I format my SQL so that ON is on the same line as JOIN. If I have a second condition, I put it on a new line. I am currently set up to right align keywords. The AND currently will right align with ON. I'd like the ability to have it right align with the word INNER.

                                1 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)

                                  We’ll send you updates on this idea

                                  0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                                • Formatting Schema - CREATE is different from ALTER

                                  In SQL Prompt 8, we can customize the formatting styles. But CREATE and ALTER is defined together in the "Schema (DDL)" Statements section, and goes for all objects.

                                  I would really like more customizability here, as I want different looks when creating or altering different things. Tables are one thing, but authentication and indexes are much different. I can't settle on one style to rule them all...

                                  For example, I want my CREATE TABLE statements to be one-line, if possible, whereas ALTER TABLE is multi-line. When I create or declare temporary objects, I don't care what the definitions are -…

                                  1 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)

                                    We’ll send you updates on this idea

                                    0 comments  ·  Format SQL  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Detect the database compatibility version

                                    When using SQL server 2016 with a database that has it's compatibility level set to 2012, I'm still being offered auto complete options for 2016 features. e.g. string_split

                                    SQL Prompt needs to detect the database compatibility level and adjust it's intellisense accordingly.

                                    1 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)

                                      We’ll send you updates on this idea

                                      0 comments  ·  Intellisense  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Build an interface to update all Redgate Tools at once.

                                      I wanted to put this one level up (all Redgate), but did not see a way to do that.

                                      When you guys release an update, I do not see any choice but to open each tool, one at a time, and check to see if it was updated. There should be one interface that I can open that will check every product I have installed and install the appropriate updates. The current is much more time consuming than it should be and extremely inconvenient. If you have such a tool now, it should be easier to find.

                                      I thought Redgate…

                                      5 votes
                                      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)

                                        We’ll send you updates on this idea

                                        2 comments  ·  User interface  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Remove useless snippets (eg. SET ANSI_NULLS)

                                        SQL Prompt ships with a lot of snippets. Snippets are very useful. Unfortunately, I find that many snippets are for very rare situations such as altering the ANSI_NULLS setting ("san" snippet).

                                        I suggest removing the clutter to make the feature more useful.

                                        I often find myself accidentally triggering some inappropriate snippet when I mistype.

                                        0 votes
                                        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)

                                          We’ll send you updates on this idea

                                          1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Output Into Highlighting Column and Value

                                          For example with this code:

                                          declare @MyTable table(Column1 varchar(20), Column2 varchar(20), Column3 varchar(20))
                                          declare @MyTableChanges table(Column1 varchar(20), Column2 varchar(20), Column3 varchar(20))

                                          insert into @MyTable (Column1, Column2, Column3)
                                          output Inserted.Column1, Inserted.Column2, Inserted.Column3
                                          into @MyTableChanges(Column1, Column2, Column3)
                                          VALUES ('Apple','Orange','Grape');

                                          select *
                                          from @MyTableChanges mtc

                                          Putting the cursor in one of the columns of the 'insert into' or 'values' clauses will highlight the corresponding column in the other clause. Putting the cursor in one of the columns of the 'output' or 'into' clauses does nothing special. It should also highlight the corresponding column in the other clause.

                                          This builds upon the already-implemented suggestion …

                                          1 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)

                                            We’ll send you updates on this idea

                                            0 comments  ·  User interface  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 34 35
                                          • Don't see your idea?

                                          Feedback and Knowledge Base