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

31

u/JustOneUsernameLeft Nov 17 '16 edited Nov 18 '16

SQL Server is a great product, thank you for it, but we need more from you.
And here's my question.

There are many issues on Connect that desperately need resolving, some of them are open for more than 10 years. My favorite is from Adam Machanic: https://connect.microsoft.com/SQLServer/feedback/details/252226/allow-enabling-and-disabling-of-a-columns-identity-property

There are also many pointed out by the SQL MVPs and experts for years, like these: https://sqlperformance.com/2013/04/t-sql-queries/filtered-indexes

I've collected some more stuff that is missing in SQL Server and should be implemented:

  • using GPU for processing!

  • native regular expression support! Don't force every user to implement their own CLR, just give us optimized regexes!

  • Git support for SSMS (just like it's in Visual Studio)

  • row constructors! - like in WHERE (orderdate, orderid) > (@orderdate, @orderid)

  • order preserving clustered columnstore

  • implement PERCENT and WITH TIES for OFFSET-FETCH (it's a standard feature) to align it with old TOP operator

  • TOP() OVER operator - like SELECT TOP (3) OVER (PARTITION BY custid ORDER BY orderdate, orderid)

  • NTH_VALUE window function

  • FILTER clause for window functions - http://modern-sql.com/feature/filter, similar to Itzik's suggestion https://connect.microsoft.com/SQLServer/feedback/details/532474

  • IS [NOT] DISTINCT FROM operator

  • INTERSECT ALL in addition to INTERSECT

  • EXCEPT ALL in addition to EXCEPT

  • RANGE BETWEEN INTERVAL '3' MONTH PRECEDING AND CURRENT ROW ability for window frames

  • WITH DROP_EXISTING (alternatively CREATE OR ALTER) for everything

  • ALTER TABLE .. CHECK CONSTRAINT should be a no-op if the constraint is already trusted

  • ORDER BY ... NULLS FIRST/LAST

  • user interface (wizards, monitoring) for Service Broker

  • column name in 'string or binary data would be truncated' message!

  • dark theme for SSMS

  • simple change of server collation on Windows (it's super-easy in SQL Server on Linux)

  • multiple tempdb databases + one "official" tempdb backwards compatible

  • In-Memory tempdb

  • search engine similar to Elastic Search / Splunk

  • ability to install In-Database R Services on FCI

  • generally speaking better coverage of standard SQL features - T-SQL is for DEVELOPERS who are constantly pushed by management to be more effective - so finally make their lives easier

This list is by no means exhaustive. Most of them are just features desctibed in ISO/IEC SQL standard.

A lot of Connect feedback has been prematurely and improperly closed with various reasons: Won't fix, by design, some are active for ages. What I would ideally want from you is to review all unfixed items and decide again whether they're worth doing or not.

Like this one - 124 votes and closed/won't fix!

This one - 179 votes - active since 2007!

Some limitations are just silly, like the one requiring something to be a single statement in a batch. If I can bypass that requirement by putting my code in a dynamic SQL and do EXEC(string) then why SQL Server cannot do that for me??

And please fix this darn slow Connect site. Maybe a reindex and statistics update will do? :-)

Finally the question: do you acknowledge this? Will you fix all this? Any comments?

4

u/josdebruijn Nov 18 '16

Great to hear that you love our product!

We love hearing your feedback on the product as well. I know it has not always seemed this way, in particular the way we handled Connect items the last couple of years. But know that we are working on improving the process.

Will we implement all the asks in your comment? Unlikely. It is always a matter of time, resources, and priorities. We do look at Connect items and vote count when thinking about priorities, so I would encourage to keep voting on the features you really want to see in the product. And we have implemented a couple of common asks recently, such as DROP IF EXISTS and CREATE OR ALTER, as well as multiple files for tempdb.

3

u/tuwtuwtuw Nov 18 '16

Create or alter comes with SP1.

3

u/christianarg Nov 18 '16

And drop if exist was already in Sql Server 2016

3

u/MaunaLoona Nov 18 '16

TOP() OVER operator - like SELECT TOP (3) OVER (PARTITION BY custid ORDER BY orderdate, orderid)

This one's at the top of my list. Would save me so much time as it would no longer require a CTE.

2

u/sbrick89 Nov 18 '16

couldn't this be done with the simplest of subselects?

select * from (
  select *, rowcount over partition by custid order by date, orderid
) a
where a.rowcount <= 3

?

1

u/MaunaLoona Nov 18 '16

Now imagine there's a few joins in there and several columns have the same names, so you can't do SELECT * in the subquery any more.

1

u/sbrick89 Nov 18 '16

so your concern is laziness? Also, reusing the column names would ALWAYS be discouraged, as it increases the chances of causing huge issues for app code (if it references the column by name instead of ordinal, as a ton of code does)

3

u/MaunaLoona Nov 18 '16

so your concern is laziness?

I suppose in your eyes the people who choose to code in C++ instead of typing out machine code as 1s and 0s are simply 'lazy' too.

Also, reusing the column names would ALWAYS be discouraged, as it increases the chances of causing huge issues for app code (if it references the column by name instead of ordinal, as a ton of code does)

I said in the subquery.

2

u/lbilali Nov 18 '16

Very nice list.

row constructors! - like in WHERE (orderdate, orderid) > (@orderdate, @orderid)

I really would like this

TOP() OVER operator - like SELECT TOP (3) OVER (PARTITION BY custid ORDER BY orderdate, orderid)

I think TOP() OVER() should not be implemented as an window function.

All other window functions do not change the number of rows, so there is no filtering but TOP() OVER() would behave as such.

In my opinion, filtering rows does not belong to SELECT

1

u/[deleted] Nov 18 '16

Great list - hits all the nails on the head I think.

I've taken to doing much of my data manipulation outside of SQL Server, and instead in Python/pandas, because SQL Server just doesn't seem to support advanced analytical querying.

I've also had to open some issues with some of these open source projects and been absolutely floored to receive responses back within minutes to hours, instead of months to years (or in some cases, never) from MS.

Anyways, I don't have a lot of hope for MS turning things around. They did a similar AMA 5 months back here, and I haven't really seen anything change since then.

For example, one question was regarding an annoying behaviour of SSMS with regards the activity monitor window causing a modal dialog to pop up behind the main window on timeouts - I've been bitten by that several times myself. /u/sqltoolsguy responds here, suggesting the issue needs more votes before MS can spend time on it, but that he thinks he could get it fixed in the next month or two. Well, it's five months later - still no change on the issue.

1

u/sbrick89 Nov 18 '16

multiple tempdb databases + one "official" tempdb backwards compatible

butwhy.gif?

most of the time the answer is related to file/disk space... you can always add files to tempdb