SQL Server

Microsoft SQL Server 2017 powers your entire data estate by supporting structured and unstructured data sources. It builds on previous versions of SQL Server, which have been industry leading for four years in a row and a leader in TPC-E. It scales to petabytes of data and allows customers to process big data through PolyBase using T-SQL over any data. SQL Server has also been the least vulnerable database during the last seven years. SQL Server 2017 brings data insights with business intelligence capabilities that provide analytics at a fraction of the cost on any device along with advanced analytics with support for R and Python.

More details about SQL Server are available in the SQL Server documentation.
If you have a technical issue, please open a post on the developer forums through Stack Overflow or MSDN.

Do you have a comment or suggestion to improve SQL Server? We’d love to hear it!

(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. Please create a redistributable command-line equivalent for SSMS -> Extended Events -> Export

    We've created a .NET C# based export for XEL to CSV using QueryableXEventData but it takes 4 minutes to export a 1GB file. In SSMS, clicking Extended Events -> Export -> CSV takes 45 seconds for the same file.

    Unfortunately, interative SSMS is required, so the process cannot be automated. Please create a command-line executable so we can automate the export at the delicious speeds of SSMS.

    Also, if the NULL can be removed from output in both SSMS and the command line tool, that would be far better.

    28 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

      under review  ·  3 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
    • sp_describe_parameter_encryption() fails with SELECT FOR UPDATE

      Try the following with SQL Server 2016 or 2017:

      exec sp_describe_parameter_encryption N'SELECT cust_name FROM customer (UPDLOCK) WHERE cust_pkey = @P1 FOR UPDATE OF cust_name',N'@P1 nchar(5)'

      You will get the error: "FOR UPDATE clause allowed only for DECLARE CURSOR"

      We are using MS ODBC 13.1 on Linux and Windows (even 17.0 preview on Linux), with Column Encryption.

      We use the following ODBC cursor attribute for the SELECT FOR UPDATE, to get a server-side cursor:

      r = SQLSetStmtAttr(st->stmtHandle, SQL_ATTR_CONCURRENCY, (SQLPOINTER) SQL_CONCUR_LOCK, SQL_IS_UINTEGER);

      When not using Column Encryption, the SELECT FOR UPDATE can be executed.

      Thanks for considering this, it is a blocker…

      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

        under review  ·  2 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
      • Installation option for Lock Pages in Memory

        I would like to have an option to set Lock Pages in Memory in the SQL Server command line installation.

        Something like this:

        /SQLSVCLOCKPAGESINMEMORY

        https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt

        2 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

          under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
        • Error 19432 on SQL Server 2017

          Receiving steady 19432 errors Always On Availability Groups transport has detected a missing log block for availability database "***". LSN of last applied log block is (***:xxxxx:x). Log scan will be restarted to fix the issue. This is an informational message only. No user action is required.

          Symptoms match those described here: https://support.microsoft.com/en-us/help/3201336/low-transaction-throughput-on-always-on-availability-group-primary-rep and here: https://support.microsoft.com/en-us/help/3198760/fix-error-19432-and-time-out-errors-with-sql-server-2016-alwayson-avai for SQL Server 2016, reported as fixed in CU3 for SQL Server 2016. Error 19432 reporting often on secondary replicas coinciding with high HADR_SYNC_COMMIT waits on the primary replica.

          Replicas are configured in synchronous mode and live in same data center on same 10GB…

          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

            under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
          • Make Reporting Services RestAPI a full replacement for the depreciated SOAP API

            Make Reporting Services RestAPI a full replacement for the depreciated SOAP API. Specifically it needs to provide a function to retrieve parameter values for a report when a higher level parameter value is known

            See : https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f9c8b902-63a9-40ea-8d72-90c9ac775d24/ssrs2017-restapi-how-to-retrieve-parameter-values-for-a-report-when-a-higher-level-parameter-value?forum=sqlreportingservices

            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

              under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
            • SSMS error with SHOWPLAN_TEXT

              When you enable the parameter "SET SHOWPLAN_TEXT ON; " The first query execution goes well and produces a query plan in text format, but the second one causes an error at the level of "mscorlib "

              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  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
              • Replace the import wizard with Power Query

                Instead of using the outdated import wizard (not the new one that was released recently in SSMS), a new one should be created that leverages the Power Query engine (aka the M language) to import data into SQL Server.

                26 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

                  under review  ·  3 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                • 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

                    under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                  • SET STATISTICS IO should also show schema name for tables

                    When you use schemas in your database, and you have the same table names in multiple schemas, it is not clear, which schema the table belongs too in the output of the SET STATISTICS IO. E.g. a table called Profile, or configuration in different schema is very common at our databases

                    Today the output is just
                    Table 'Profile'. Scan count 1, logical reads 123, physical reads 1, read-ahead reads 121, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
                    Table 'Profile'. Scan count 3, logical reads 13, physical reads 1, read-ahead reads 342, lob logical reads 0,…

                    7 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

                      under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                    • KPI percent incorrect if goal value is negative

                      Product: SSRS 2016 SP1 CU6

                      Reporting services KPI: incorrect percent in case if goal has negative value.

                      Scenario: comparison of current and last year figures.
                      In case if last year value (goal) is negative, and actual value is positive: KPI percent is negative, but it must show positive grows.

                      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

                        under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                      • Live Query Statistics not working with some CLR functions

                        Some combinations of CLR user-defined function and query complexity break the Live Query Statistics functionality in SSMS. The window shows "waiting for execution plan" and does nothing, indefinitely. SSMS can still be used in other windows, unless you try to close the tab; at that point SSMS hangs. Killing the connection does not help.

                        Simple example to reproduce:

                        Function definition:

                        using System;
                        using System.Data;
                        using System.Data.SqlClient;
                        using System.Data.SqlTypes;
                        using Microsoft.SqlServer.Server;

                        public partial class UserDefinedFunctions
                        {
                        [Microsoft.SqlServer.Server.SqlFunction]
                        public static SqlInt32 Delay(SqlInt32 ms)
                        {
                        System.Threading.Thread.Sleep((int)ms);
                        return (ms);
                        }
                        }

                        Sample query (after deploying to UDF dbo.Delay in database CLR_dtabase):

                        SELECT soh.CustomerID,
                        c.StoreID, …

                        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

                          under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                        • Add StatementId and StatementType to live query plan StmtSimple node

                          When rendering a live query plan, the "SELECT"/"INSERT"/"UPDATE"/etc node on the far left is not rendered. This is because the StmtSimple node in the plan XML is missing the StatementId (which can always be set to 1 in this context) and the StatementType (which should be properly set). Adding these should add little overhead and would enable the UI to return better information.

                          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

                            under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                          • Use column aliases directly in SELECT clause

                            It would be nice if queries like this were possible:

                            SELECT
                            A AS B
                            ,C AS D
                            ,D-B AS E
                            FROM table

                            In other words, use column directly in the SELECT clause where they are defined. Other database vendors have implemented this, so I assume it's not rocket science.

                            Right now, we have to use subqueries just to define an extra calculation.

                            12 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

                              under review  ·  5 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                            • Add FOR CSV to facilitate CSV export

                              We have FOR XML and FOR JSON. But it is not uncommon that people want to produce CSV files. This can be done with BCP, but it is not straightforward not the least if you want to add headers. And if you only want fields to be quoted when needed, BCP is not really what you are looking for. SSIS is also an alternative, but SSIS does not always fit in.
                              Thus, it would be handy if there was a an option like FOR CSV, with a syntax like:
                              FOR CSV [, HEADERS] [,DELIMITER(',')] [, QUOTE('"')]

                              HEADERS would mean that…

                              9 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

                                under review  ·  1 comment  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                              • Bug with SET SHOWPLAN_ALL ON

                                In Management Studio V17.4 me and my colleague both gets the error "Input string was not in a correct format. (mscorlib)" when we have first executed the SET SHOWPLAN_ALL ON statement and do a simple select like SELECT * FROM sys.objects afterwards

                                This works in SQL 2016, so something must be broken in SQL 2017

                                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

                                  under review  ·  2 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                • Scalar MAX function

                                  It would be nice to have a scalar MAX function (name it S_MAX) that returns a maximum of two numbers. Right now you have to use CASE or write your own TVF and CROSS APPLY it, both are quite clumsy. Same for minimum of two:

                                  SELECT
                                  S_MAX(1, 0) --yields 1
                                  ,S_MIN(1, 0) --yields 0

                                  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

                                    under review  ·  1 comment  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                                  • T-SQL Common Table Expression "Materialize" Option

                                    T-SQL Common Table Expression "Materialize" Option

                                    I have run into a couple performance and results issues using Common Table Expressions (CTEs).

                                    The first case is where I coded a data retrieval as a single, large query with a CTE that is referenced multiple times in the query. The CTE has an expensive query. I was able to determine, via execution plans, etc., that the results of the CTE were being recalculated multiple times, resulting in slow execution. I rewrote the data retrieval as multiple steps where the query of the CTE was first executed into a table variable, and I…

                                    9 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

                                      under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Integrate B2C AD with Azure SQL server

                                      Make it possible to integrate Azure B2C with Azure SQL server for Authentication and Authorizations

                                      3 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

                                        under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Give us option to not have square brackets when drag&drop in SSMS

                                        When we drag something from OE into a query window, then the identifier will always be enclosed in square brackets. Many of us do our due diligence and take care to use identifiers that do not require separators. These separators makes SQL code (a lot) harder to read, and we feel that we are punished with these square brackets. We don't want to do a search and replace all over and over again, when there could just be a setting in SSMS to not generate these.

                                        4 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

                                          under review  ·  0 comments  ·  Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Reporting Error with SQL Server 2014 SP2-CU8

                                          After applying CU8 to my dev and prod machine (Enterprise Edition) I can see that there is an error while rendering a textbox with a DocumentMapLabel.

                                          If you have a DocumentMapLabel at a textbox on the page, then this element is rendered with the wrong font. So this is (maybe) 8pt instead of 14pt as in VS.
                                          While rendering as PDF everything is still fine.

                                          2 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

                                            under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 388 389
                                          • Don't see your idea?

                                          SQL Server

                                          Feedback and Knowledge Base