r/SQLServer • • Nov 17 '16

[AMA] Microsoft SQL Server - 11/18

Hi Everyone!  

We're from the Microsoft SQL Server Engineering Team and we want you to ask us anything!  

We're posting this a bit early so you can start asking questions - feel free to start asking and we'll start answering Friday 11/18 at 9:30 PDT until 14:00 PDT. We'll have members from the Engineering teams participating in the AMA. This includes folks working on

  • SQL Server Features such as Columnstore, In-Memory OLTP, Row-Level Security, PolyBase, Stretch, or any of the features listed here.

  • Database Tools for Microsoft SQL Server and Azure SQL Database (SSMS, SSDT, SSRS, SSIS, SSAS, SSMA, SQLPS, CLI Tools)

  • Azure Portal for Azure SQL DB, Azure Elastic Database Pools or Azure Virtual Machines with SQL Server

  • R Services for predictive analytics, machine learning, and using scalable R packages with SQL Server technologies

  • Developing with SQL Server using the language of your choice (Examples. Node, Python, Java, etc.) or connecting your app to SQL Server using our drivers (ODBC, JDBC and open source drivers)

  • Migrating or Building Apps and Solutions with SQL Server and the resources we have available to help you get the most out of SQL Server.

  • [SQL Server on Linux] (https://www.microsoft.com/en-us/sql-server/sql-server-vnext-including-Linux)

  • [SQL Server 2016 Service Pack 1] (https://blogs.technet.microsoft.com/dataplatforminsider/2016/11/16/sql-server-2016-service-pack-1-generally-available/)

Here are some question ideas:

  • What’s new in SQL Server Service Pack 1 and SQL Server on Linux?

  • How does your team take the feedback from the community?

  • What tools would I use to migrate my database to SQL Server?

  • What’s a cool trick you don’t think most customers know about?

You can ask us anything about our public products or about the team. If there's a topic that's not listed above, ask it anyways! We'll do our best to answer it. We cannot comment on unreleased features and future plans, though :) Tweet at us with #SQLServer and follow @SQLServer to keep up to speed with what the SQL team is working on. After this AMA, you can also post questions here in reddit or tweet at us any time.

    Update@9:50 PST Hey Everyone! We are starting to answer the questions! Thanks for all the awesome questions so far. keep them coming! :)

    Update@2:15 PST Hey Everyone! Wow. Over 100 questions. Thanks for joining us today and participating in our SQL Server AMA! We're currently wrapping up the AMA, but we will do our best to answer the remaining questions. Going forward, the SQL Server Team will be more active on this subreddit. We're particularly excited to hear what you have to say about SQL Server v.Next!  

Also, tell us what you thought about this AMA Event by taking our survey: https://survey.microsoft.com/211438

67 Upvotes

386 comments sorted by

View all comments

Show parent comments

3

u/Saitama_Punch Nov 18 '16

Thanks for your question! If source code integration is an important aspect of how you use SSMS, you can enable the Visual Studio packages manually. We will publish a blog soon that shows how to do this.

Here's what happened: In the latest generation of SSMS, we moved to the VS2015 Isolated Shell. While this provides SSMS a modern IDE foundation for many functional areas, it also had some consequences. Specifically, the integration with source control systems in SSMS no longer works the way it did in SSMS 2014 and prior. Previously, one could install the Visual Studio MSSCCI provider and then integrate with various source control systems. VS2015 does not support MSSCCI so that is no longer an option to use in SSMS

2

u/sbrick89 Nov 18 '16

let's be a tad honest though, SSMS's support for MSSCCI was still fairly weak (one of my Connect items)... VS has a pluggable source control option... the only real requirement is a workspace mapping, which is about the same as the SSMS requirement to have a "project"

6

u/sanagama Nov 18 '16 edited Nov 18 '16

Agreed, MSSCCI was very weak. The good news is that VS2015 includes TFS and Git integration, but these are disabled by default in the latest versions of SSMS that use the VS2015 Isolated Shell. Here's why: the TFS source control integration package that VS2015 provides also includes the entire suite of TFS integration features. If we include this package by default, SSMS will have Team Explorer in its entirety which includes things such as work item tracking, builds, etc. This doesn’t fit in the overall experience SSMS is designed for.

That said, if source code integration is an important aspect of how you use SSMS, you can enable the Visual Studio packages manually. We will blog about this shortly but here's how you can do this right now:

  • Close SSMS if it is running.

  • Install Visual Studio 2015 on your SSMS machine. If you don’t already have Visual Studio, Community Edition will work fine. This is a large download but you can save some space by unselecting all languages during the Visual Studio install if your only purpose is to enable Source Control in SSMS.

  • Edit the ssms.pkgundef file found at C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\ssms.pkgundef.

  • At the top of this file there are a series of packages grouped together related to TFS Source Control features. These packages must be removed from the pkgundef file. This can be done by either deleting the section or commenting out each line using '//'. Here is an example of what the section should look like if commented out:

    // TFS SCC Configuration entries. The TFS entries block Team Explorer from loading.  

    // Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage  

    // [$RootKey$\AutoLoadPackages{4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}]  

    // Microsoft.VisualStudio.TeamFoundation.Lab  

    // [$RootKey$\Packages{17c5d08a-602c-4dfb-82b5-8e0f7f50c9d7}]  

    // GitHub Package  

    // [$RootKey$\Packages{c3d3dc68-c977-411f-b3e8-03b0dccf7dfc}]  

    // Team Foundation Server Provider Package  

    // [$RootKey$\Packages{5BF14E63-E267-4787-B20B-B814FD043B38}]  

    // Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPackage  

    // [$RootKey$\Packages{6238f138-0c0c-49ec-b24b-215ee59d84f0}]  

    // Microsoft.VisualStudio.TeamFoundation.Build.BuildPackage  

    // [$RootKey$\Packages{739f34b3-9ba6-4356-9178-ac3ea81bdf47}]  

    // Microsoft.VisualStudio.TeamFoundation.WorkItemTracking  

    // [$RootKey$\Packages{ca39e596-31ed-4b34-aa36-5f0240457a7e}]  

    // Microsoft.VisualStudio.TeamFoundation  

    // [$RootKey$\Packages{b80b010d-188c-4b19-b483-6c20d52071ae}]  

    // Microsoft.TeamFoundation.Git.Provider.SccProviderPackage  

    // [$RootKey$\Packages{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]  

    // Microsoft.VisualStudio.TeamFoundation.VersionControl.SccPcwPluginPackage  

    // [$RootKey$\Packages{1b4f495a-280a-3ba4-8db0-9c9b735e98ce}]  

    // Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage  

    // [$RootKey$\Packages{4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}]  

    // Visual SourceSafe Provider Package  

    // [$RootKey$\Packages{AA8EB8CD-7A51-11D0-92C3-00A0C9138C45}]  

    // Visual SourceSafe Provider Stub Package  

    [$RootKey$\Packages{53544C4D-B03D-4209-A7D0-D9DD13A4019B}]  

    // Microsoft.VisualStudio.TeamFoundation.Initialization.InitializationPackage  

    [$RootKey$\Packages{75DF55D4-EC28-47FC-88AC-BE56203C9012}]  

    // Team Foundation Server Provider Stub Package  

    [$RootKey$\Packages{D79B7E0A-F994-4D4D-8FAE-CAE147279E21}]  

    // Microsoft.VisualStudio.Services.SccDisplayInformationPackage  

    [$RootKey$\Packages{D7BB9305-5804-4F92-9CFE-119F4CB0563B}]  

    // Microsoft.VisualStudio.TeamFoundation.Lab.LabPcwPluginPackage  

    [$RootKey$\Packages{e0910062-da1f-411c-b152-a3fc6392ee1f}]  

    [$RootKey$\ToolsOptionsPages\Source Control]  

    [$RootKey$\AutoLoadPackages{11b8e6d7-c08b-4385-b321-321078cdd1f8}]  

    // TFS SCC Configuration entries.

Once completed, start SSMS and the Team menu should be visible in the SSMS menu bar. This menu and related features are the standard Visual Studio functionality. This enables connections to TFS servers or Git servers.

3

u/sbrick89 Nov 18 '16

now THIS is a cool trick!

1

u/BananaRepublican73 Nov 18 '16

What does VS2015 rely on now, and why can't that technology be used in SSMS instead of MSSCCI?

1

u/sbrick89 Nov 18 '16

VS has always supported MSSCCI... tools -> options -> source control -> plugin selection... TFS just happens to be included OOTB, whereas it used to be an addin.

1

u/BananaRepublican73 Nov 18 '16

I think there's a subtler point that I'm not getting. If VS has always supported it, but no longer as of VS15, and that's the reason that SSMS no longer supports it. Then presumably VS15 must support something else, and therefore SSMS should as well? Sorry, I'm just not making the connection.

1

u/sbrick89 Nov 18 '16

SSMS appears to only be using the VS shell... which doesn't include the source control section in options. So it looks to be more of an issue between VS "modes", whether operating as a shell, or as the full blown IDE

1

u/BananaRepublican73 Nov 18 '16

Ah, OK. That clarifies things.

1

u/sbrick89 Nov 18 '16

/u/sanagama showed how to enable it, even in the standard shell... looks like it's just a matter of definition.

1

u/turbosnacks Nov 22 '16

I look forward to reading that blog post!