SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

Featured Script

The Voice of the DBA

Python in SQL Server

The Microsoft Data Amp event was this week, with a number of SQL Server announcements. We now know this is going to be called SQL Server 2017, which is no surprise. CTP 2.0 was also released, which includes a few improvements, but one in particular caught my eye. Python code can now run inside SQL Server, meaning we are not limited to the R language for data analysis. That's exciting to me and I think that's a great change. It's one that's been rumored for some time. I like Python, and think it's a nice, elegant language. My son has been learning it in college and I've spent some time playing with it after the SDTIG got me interested with their beginning Python and Data Science modules. Since then I've spent a little time learning R, but find it to be a cumbersome language to work within. Having code embedded in a string in a SQL Server stored procedure made things harder, and I kept hoping that Python would be added.

It's there now and you can play with it. While you might debate whether this is a good use of SQL Server resources, I think for quick, short, specific analysis calls, it's a good choice. Certainly complex calculations and data manipulations are not always efficient in T-SQL and having another option is great. You'll want to be careful when you run Python or R code, but these are good options to have. There is also GPU processing support is available to take some load off your main CPU.

CTP 2 is supposedly feature complete and there are more changes than just Python. Tempdb has a better setup experience, we get the first version of graph data and query support, resumable online index rebuilds, adaptive query processing, and more. You can read the announcement, which isn't heavy on technical details, but gives you an idea of what's changing. I'm not much of an SSAS person, but there are some enhancements in this platform as well.

There are other improvements and announcements this week. Azure Analysis Services is generally available (no longer beta), as as Azure Data Lake Analytics and Data Store. DocumentDB is improved and some Cognitive Services are GA, and in general, Microsoft is all in on the analytics and deep learning.

The world of data in the Microsoft world is growing and changing rapidly. We'll have a new version this year, just a little over a year after SQL Server 2016. I expect that we will continue to see more, and new changes, occurring at a rapid pace in the future. None of us will completely keep up and become experts in all areas, but we have lots of options for new learning and experimenting with advanced features. I'd encourage you to take a little time here and there and read about and play with the new features. If you have Docker, you can get a version of SQL Server 2017 up and running without installing anything on your machine to see if there are any changes that might help your organization take better advantage of  the data you work with every day.

Steve Jones from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums


The Voice of the DBA Podcasts - I'm taking a short break from podcasts, and my apologies to all. I've been ill and my voice has been a bit sore, so I'm trying to limit the recording I do for a few weeks. Hopefully I'll be back soon.

ADVERTISEMENT
Database DevOps

Library of articles for DevOps, DLM, & Continuous Delivery

Discover best practices and processes for more agile methods of database delivery. Find out how automating the build, test and deployment of database changes reduces risk and speeds up the delivery cycle. Read more on Simple Talk.

SQL Monitor

New SQL Monitor Reporting Module

SQL Monitor now includes a new Reporting module. It allows you to create customized reports, combining the individual server performance metrics available in SQL Monitor with summary information on your entire SQL Server estate. These reports can then be exported to pdf and emailed to you on a scheduled basis. Download SQL Monitor now and get a 14 day free trial.

Featured Contents

 

Performance Tuning Using Extended Events: Part 1

Brian Davey from SQLServerCentral.com

In this article, learn how to identify performance tuning opportunities using Extended Events. More »


 

SQL Clone Trivia Quiz - win a $10 gift card every weekday in April

To celebrate the recent launch of their new database provision tool, Redgate are giving you the chance to win a $10 Amazon or Starbucks gift card every weekday this month. To enter the prize draw, just answer the daily SQL Clone trivia question on the right-hand side of the homepage. More »


 

The right way to approach a legacy code base

Additional Articles from Redgate

Andrea Angella shares what he learned from attending Michael Feather's workshop on working effectively with legacy code. More »


 

From the SQLServerCentral Blogs - Tuning Parallelism on SQL Server

matthew.mcgiffen 73574 from SQLServerCentral Blogs

Parallelism and MAXDOP There’s no doubt that parallelism in SQL is a great thing. It enables large queries to share the... More »


 

From the SQLServerCentral Blogs - What Exactly is the “Data Platform” Nowadays?

Rolf Tesmer (Mr. Fox SQL) from SQLServerCentral Blogs

A couple of months ago I was presenting at SQL Saturday Melbourne (582) on Azure Cognitive Services and got chatting with... More »

Question of the Day

Today's Question (by Jagadish Kumar Punnapu):

On a table having 10 million rows, 4 non-clustered indexes and 1 clustered index have to be created. In this scenario, which order of creation is recommended?

Think you know the answer? Click here, and find out if you are right.


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: index.

We'd love to give you credit for your own question and answer.
To submit a QOTD, simply log in to the Contribution Center.

ADVERTISEMENT

Pro Power BI Desktop

This book shows how to deliver eye-catching Business Intelligence with Microsoft Power BI Desktop. You can now take data from virtually any source and use it to produce stunning dashboards and compelling reports that will seize your audience’s attention. Slice and dice the data with remarkable ease then add metrics and KPIs to project the insights that create your competitive advantage.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

In my R console, I've assigned the value of 42 to the variable x, like this:

x <- 42

Now I want to assign the value "42 is the best answer" to the same variable. How do I do this?

Answer: x <- "42 is the best answer"

Explanation:

We can just reassign the value without worrying about types.

Ref: tryr.codeschool.com - click here


» Discuss this question and answer on the forums

Featured Script

Index Utilization Summary

Devendra Thakur from SQLServerCentral.com

Use this script to get the list of all Indexes in your database and how effective they are.

More »

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.

SQL Server 2016 : SQL Server 2016 - Administration

Ssrs 2014 migration to 2016. - Hi, I'm trying to migrate a 2014 Ssrs solution to Ssrs 2016, and had got to the point I felt we...

A little tale and a seven questions about SQL partition - The tale Once up a time a small software shop had a application used Firebird DBMS. The small shop managed to do...

Log Shipping - Exclusive access could not be obtained because the database is in use - Hi, We have been facing an issue with Log Shipping. Few databases struck in Restoring status. If we check the properties...


SQL Server 2014 : Administration - SQL Server 2014

SQL Server Multi Administration Job not appearing on target server inquiry - Hi, Can anyone help me on this inquiry that it seems there was no error on job creation but not appearing...


SQL Server 2014 : Development - SQL Server 2014

SSIS 2014 edits to DTSX file do not seem to take effect - I have a DTSX file that contains a query that calls an SQL CLR function.  That function changed to add...

Estimated v Actual rows in query plan - Hi Guys, This is general question initially without any DDL or query plan (my company won't allow it), therefore I am...

Help with SQL Loop Query - Hi Guys, I am using below While Loop Syntax but for some reason, I can't update the records or it...


SQL Server 2012 : SQL 2012 - General

SSRS Report Schedule - getting info from the DB - What do these numbers mean ? - - Please see the attached output....  Can anyone re-write this query ( May be using  some CASE statements withing SELECT )  and make...

Need help on XML Query, Some tweaking help needed. - Report Sever related - The following works, but how do I further breakdown and get what is in the NAME VALUE parts ( See the...

Transactional replication keeps applying snapshot - Hi, I created a new snapshot and applied it.  It ran the scripts to truncate all the tables and drop the...

SQL help - Need to know the first date of previous month and last date of previous month... - Should be an easy one right ? I like it in YYYYMMDD format

creating new partition files on table - hello all,   I have a table that has 2,948,231,398 billion rows...I know...last week I had to figure out how to...


SQL Server 2012 : SQL Server 2012 - T-SQL

Replace string - Hi I need to replace these values as blank space from a string Hello all!  

tempdb curiosity - I maintain a sql server 2012 server with 4 tempdb files.  The first one is on a different partition then...

Query Help - I have Data set like this create table #Data(BID int, AID int, DID int, OV varchar(50)) insert into #Data values (1, 10,...


SQL Server 2008 : SQL Server 2008 - General

Table size and indexes - How many rows does a table need to have before you start thinking about adding an index?


Cloud Computing : SQL Azure - Administration

Question: Migrating from SQL 2014 to Azure SQL - Hi Guys, I have a requirement to migrate on premise SQL 2014 db to Azure. The database has user defined file groups....


SQLServerCentral.com : Articles Requested

The OUTPUT clause - Looking for a couple articles here. One on basics of OUTPUT for inserts and deletes. One for updates and combining...


SQL Server 2005 : Administering

Deadlocks on Clustered Index - hi all i have a very simple control table with 1 record, this record manages number increments for various ranges such...


SQL Server 7,2000 : T-SQL

CASE vs UNION - I am building a, to me, complex query but I have come up with an interesting issue of speed. When needing...

This email has been sent to newsletter@newslettercollector.com. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com.
This newsletter was sent to you because you signed up at SQLServerCentral.com.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com