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. Correctly escape predefined entities in deadlock XML

    If you create a table that has &, ", <, or > in the name, it's not correctly escaped in all instances of deadlock XML.

    This causes an error when trying to convert extended event/system health data to valid XML for analysis.

    https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

    79 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      under review  ·  1 comment  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
    • SSIS Script tasks losing code

      I have a very strange issue happening that is causing Script Task code to clear out. I have been able to test on 2-3 different machines. We are running SSDT 15.4 preview. The steps to reproduce were as follows.

      1. Create a script task inside of a foreach loop container. 2. Create a comment in the script task. 3. Change or add a variable mapping in the foreach. 4. Save package. 5. Open the script task and the comment will have vanished.

      As my last attempt for success,I have upgraded to 15.5.1 and the problem still exists.

      45 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        under review  ·  13 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
      • Dark Theme

        Dark theme for SQL Server 2017 SSMS is missing.

        32 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          unplanned  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
        • Script Tasks losing code in SSDT 17.1 for Visual Studio 2015

          I have an SSIS 2016 package with a number of For Each ADO Loops, each with a single script task, which are usually working fine.

          However, every so often, a script task will suddenly 'forget' all the code within it. I'm presented with an empty task editor which has reset to C# (if using VB), and lost the ReadOnlyVariable names.
          If I click Edit Script, I get a brand new script created in the editor. This can occur intermittently on reopening the package, or after editing _a different_ script task.

          The same thing also occurs with both VB and C#…

          31 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            9 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →

            Upvotes: 47

            <=-=Jun 26 2017 1:02AM=-=>

            I have had the exact same issue, intermittently whenever I open script tasks all my code seems to have vanished and all the “ReadOnlyVaraiables” and “ReadWriteVariables” have also disappeared. It happens for c# and VB script tasks. This is is extremely frustrating and is impossible to develop a project when code randomly keeps disappearing. I’m wondering if this is a bug with Visual Studio 14.0.23107.0 D14REL. Can anyone at Microsoft shed some light on this please?

            <=-=Jun 29 2017 10:45PM=-=>

            Got the same problem. Seems like the Script Task is cleared when the project/Visual Studio i closed/shut down.

            <=-=Jul 18 2017 5:38PM=-=>

            Same problem for me, too. Once the original code in Script Task was still present after reloading the solution. But after that they are gone, along with ReadOnly/ReadWriteVariables and ConnectionManagers. I’m using SSDT 14.0.61705.170 (which just came out) with VS 14.0.25431.01 update…

          • OPENROWSET T-SQL and MOLAP provider fail on complex DAX statements

            Running the OpenRowSet (SQL2016) against a SSAS 2017 on-premise or Azure SSAS will fail with error

            OLE DB provider "MSOLAP" for linked server "(null)" returned message "OLE DB error: OLE DB or ODBC error: An unexpected exception occurred.."

            T-SQL Statement:

            SELECT *
            FROM OpenRowset('MSOLAP','DATASOURCE=<Servername>;Initial Catalog=<cube>;User ID=<userid>;Password=<password>’,
            '<DAX STATEMENT>’)

            Running the DAX directly against SSAS (2017) returns the correct results, also the OpenRowSet command works fine in SSAS 2016 using the same DAX statement.

            Bug maybe due to the properties differences in the OpenRowSet implementation rather than the MOLAP provider (these are the XML properties included in the MDX query to…

            30 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
            • SMO Enumerations slow with hundreds of databases

              SMO Enumeration is notoriously slow, especially if a SQL Server contains hundreds or thousands of databases. This is impacting our project and we have to get around it by creating new objects that are populated by T-SQL.

              I know this is a known issue. Can it be revisited?

              28 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                4 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
              • Visual Studio 2017 SSDT adds hardcoded master.dacpac include

                Visual Studio 2017 seems to add a hardcoded path to the master.dacpac if I include it in a project of mine. Older versions of the SSDT used the $(DacPacRootPath) variable to get the master.dacpac.

                This is really annoying as it breaks the builds on our build server where the master.dacpac is installed in a different folder than on my development machine.

                23 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  3 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                • Remove the word "Initial" in SSMS, Object Explorer, Database Properties, Files.

                  Right-click a database, Properties, Files. There's a column named "Initial Size (MB". The word "Initial" should be removed. It is incorrect to have that word there. What we see here is the current size. This is particularly confusing for tempdb since people tend to think that what you see here is indeed the initial size (size at startup, from sys.master_files), which is *not* correct. Again, you see the current size!

                  21 votes
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    2 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                  • Fix the Problem of Converting Hijri Dates to Gregorian Dates

                    Currently Microsoft tsql function called Convert() is not able to convert the Hijri date 'yyyy-02-30' to its corresponding Gregorian Date, here are the details of this issue

                    https://social.msdn.microsoft.com/Forums/en-US/b86b0cf6-280d-436e-ba92-ff168794c420/error-in-converting-hijri-date-to-gregorian-date?forum=sqlnetfx&prof=required

                    19 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                    • Identical symmetric keys do not work between SQL Server 2017 and other SQL Server version

                      hi everybody!

                      I believe, there is a general product issue in SQL Server 2017. The problem concerns encrypting & decrypting data using the same symmetric key on different servers.
                      I have an issue in SQL Server 2017 CU3 (version 14.0.3015.40). I need to create identical symmetric keys on two servers of different versions, as it is described in MS article:

                      https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/create-identical-symmetric-keys-on-two-servers

                      These steps work well within and between different versions of SQL Servers (2012, 2014, 2016), but not between SQL Server 2017 and any other server.
                      I can create identical symmetric keys on SQL Server 2012, 2014 and 2016. So…

                      16 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        under review  ·  7 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                      • MDS Explorer should show Attribute description of Name and Code attributes.

                        It's possible to set Attribute description on system attributes Name and Code in the same way as user defined attributes on an entity in MDS. But Description only shows in MDS Explorer for user defined attributes not for Name and Code. I expected this to work the same way for system and user defined attributes.

                        SQL Server version 13.0.4466.4
                        MDS Schema version 13.1.0.3

                        13 votes
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                        • Performance Dashboard / Expensive Queries / copy query text

                          When using the reports in the SSMS Performance Dashboard, you are unable to copy the query text from any of the "expensive queries" reports. Make it so you can either click to view the query in a new query window, or right-click the query to copy the text for pasting into a new window.

                          11 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            planned  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                          • SSMS 17.6 crashes when clicking on a schedule in a maintenance plan

                            SQL Server Management Studio 17.6 (version 14.0.17230.0) crashes when I click on the schedule icon for a subplan (from a SQL Server 2016 SP1 CU4 instance). In Event Viewer, I find the following event from ".Net Runtime":

                            Application: Ssms.exe
                            Framework Version: v4.0.30319
                            Description: The process was terminated due to an unhandled exception.
                            Exception Info: System.NullReferenceException
                            at Microsoft.SqlServer.Management.SqlMgmt.ScheduleDialog.InitializeControls()
                            at Microsoft.SqlServer.Management.SqlMgmt.ScheduleDialog..ctor(Microsoft.SqlServer.Management.SqlMgmt.JobScheduleData)
                            at Microsoft.SqlServer.Management.DatabaseMaintenance.DbMaintDiagramHostCtrl.ChangeShedule()
                            at Microsoft.SqlServer.Management.DatabaseMaintenance.DbMaintDiagramHostCtrl.grid_MouseButtonClicked(System.Object, Microsoft.SqlServer.Management.UI.Grid.MouseButtonClickedEventArgs)
                            at Microsoft.SqlServer.Management.UI.Grid.GridControl.OnMouseButtonClicked(Int64, Int32, System.Drawing.Rectangle, System.Windows.Forms.MouseButtons)
                            at Microsoft.SqlServer.Management.UI.Grid.GridControl.HandleButtonLBtnUp(Int32, Int32)
                            at Microsoft.SqlServer.Management.UI.Grid.GridControl.ProcessLeftButtonUp(Int32, Int32)
                            at Microsoft.SqlServer.Management.UI.Grid.GridControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)
                            at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
                            at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
                            at Microsoft.SqlServer.Management.UI.Grid.GridControl.WndProc(System.Windows.Forms.Message ByRef)
                            at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
                            at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
                            at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

                            10 votes
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                            • Query Store SELECT Performance

                              Running a query against a large Query Store repository (10 GB) can be really slow if filtering on runtime stats intervals.

                              It looks like an index is missing on sys.query_store_runtime_stats (runtime_stats_interval_id).

                              10 votes
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                1 comment  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →

                                Upvotes: 3

                                <=-=May 27 2017 6:38AM=-=>

                                Thank you for taking the time to post this issue! We understand that this could be an important performance improvement.
                                Performance tuning is of such scenarios is not a trivial task. Change of such feature as Query Store can speed up one scenario and lead to degradation in others. We�ll look more into this particular use case and see what we can do.

                              • SSRS report builder not working after applying SQL update

                                I have noticed that I can no longer use the “Report Builder” functionality in SSRS (while opening it from Report manager URL) after patching SQL Server 2012 Sp4 with recent CU KB4057116.

                                Window Server 2008 R2 Standard
                                SQL Server 2012 SP4 (11.0.7001.0)
                                Getting below error after installing KB 4057116

                                https://support.microsoft.com/en-us/help/4057116

                                Following errors were detected during this operation.
                                * [26/02/2018 10:15:22] System.Deployment.Application.InvalidDeploymentException (HashValidation)
                                - File, interop.shdocvw.dll, has a different computed hash than specified in manifest.
                                - Source: System.Deployment

                                9 votes
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  under review  ·  7 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                • No hash warning on adaptive join

                                  When an execution plan uses an Adaptive Join, and the actual row count exceeds the estimated row count by sufficient to cause the hash table to spill to tempdb, no hash warning is exposed in the execution plan.

                                  (The hash warning is visible in an extended events session; and the Batch Mode Adaptive Memory Grant feature does also kick in correctly, so the spill is detected and handled internally; just not exposed in the execution plan).

                                  9 votes
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    under review  ·  0 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                  • SSMS 17.6 Crash when opening scheduler task for a maintenance task

                                    When conencting for far to

                                    2012 sp3
                                    2014 sp2
                                    2016 sp1

                                    I crash anytime I try to open the scheduler task, I still had a VM with 17.4 and this works correctly on the same versions.

                                    New or already created one. No time to enter or modify as it crash on load.

                                    Event id 1000
                                    Faulting application name: Ssms.exe, version: 2017.140.17230.0, time stamp: 0x5aa77b02
                                    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
                                    Exception code: 0xc0000005
                                    Fault offset: 0x15723a35
                                    Faulting process id: 0x163c
                                    Faulting application start time: 0x01d3c19109d5c915
                                    Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe
                                    Faulting module path: unknown …

                                    8 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      6 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Support Trace Flag 834 with Columnstore

                                      Trace flag 834 has been marked as unsupported with columnstore by Microsoft since SQL Server 2012, but that trace flag resolves columnstore and batch mode related bottlenecks with the RESERVED_MEMORY_ALLOCATION_EXT wait when running workloads at high concurrency. In addition, vendors use TF 834 with columnstore when competing in the TPC-H benchmarks.

                                      Please support TF 834 with columnstore.

                                      References with reproducible workloads:

                                      https://orderbyselectnull.com/2018/03/06/large-cci-etls-cannot-scale-without-tf-834/

                                      8 votes
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        under review  ·  1 comment  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                      • VS 2017 SSDT SSIS Dark Theme fail

                                        VS 2017 SSDT SSIS Dark Theme: Annotations and dataflow row numbers are in white text, therefore invisible.

                                        8 votes
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          1 comment  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →

                                          Upvotes: 4

                                          <=-=Oct 12 2017 11:54AM=-=>

                                          Agreed – it’s pretty much unusable with the dark theme. See attachment of screenshot.

                                          <=-=Oct 12 2017 11:55AM=-=>

                                          Apparently I can’t add an attachment so for a screenshot look here: https://i.imgur.com/X2PfTp7.png

                                          <=-=Oct 25 2017 9:23AM=-=>

                                          I am also getting this. I thought I was going crazy! When I was using VS 2015 my canvas color was black, so the dark theme worked. But now that I have installed windows 10 and VS 2017 fresh, and the white text on cream background is totally unreadable. Is there any way to change the canvas color?

                                        • Deploying single SSIS package to SQL 2016 from SSDT 17.0-17.4

                                          Deploying a single SSIS package with VB script task, targeted for SQL 2016 from SSDT 17.0-17.4 causes the script tasks to not execute but the package deploys and executes reporting success. .

                                          8 votes
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            4 comments  ·  Bugs  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 210 211
                                          • Don't see your idea?

                                          SQL Server

                                          Feedback and Knowledge Base