Skip to content

Settings and activity

4 results found

  1. 1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  SQL Prompt » Format SQL  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Niels van de Coevering shared this idea  · 
  2. 2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Niels van de Coevering shared this idea  · 
  3. 29 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Niels van de Coevering commented  · 

    This would be a great addition. My code is now formatted like beneath (underscores meant to be spaces), where the ORDER BY clause is creating a new line and I want an option to keep the OVER clause on one line.

    SELECT
    ____ROW_NUMBER() OVER (PARTITION BY [Column1]
    ORDER BY [Column1] ASC
    _____________________________) AS Key
    ____,[Column2]

    Niels van de Coevering supported this idea  · 
  4. 7 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Niels van de Coevering commented  · 

    Yes, suggesting the same

    Here's an example query. When enabling the "Align aliases" option under "Lists", the aliases for tables are also aligned, which causes the table aliases to move away to the right from the tables.

    SELECT
    column1 = GETDATE()
    ,column2withlongname = HOST_ID()
    FROM
    sys.all_views [av]
    INNER JOIN information_schema.views [v]
    ON [v].table_name = av.name
    INNER JOIN information_schema.view_column_usage [vcu]
    ON [vcu].view_name = av.name;

    Niels van de Coevering supported this idea  ·