article thumbnail

Bucketizing date and time data

SQL Performance

One is using a function called DATE_BUCKET , which at the time of writing is only available in Azure SQL Edge. Another is using a custom calculation that emulates the DATE_BUCKET function, which you can use in any version, edition, and flavor of SQL Server and Azure SQL Database. In my examples, I’ll use the sample database TSQLV5.

Azure 139
article thumbnail

Is MongoDB Open Source? Is Planet Earth Flat?

Percona

Co-founder Eliot Horowitz recounts ( {coding}bootcamps.io ): “MongoDB was born out of our frustration using tabular databases in large, complex production deployments. 2016: The company adds service-loaded MongoDB Professional to its mix. looking out for MongoDB Inc. Is MongoDB open source or paid?

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Deprecated features to take out of your toolbox – Part 2

SQL Performance

She has some insight (and inspired a lot of comments) in her 2016 post, " Why do YOU avoid Extended Events? "; perhaps there is some insight there into whether your reasons for holding out are still (as) valid in 2021. There is an XEvents Profiler built into modern versions of SSMS, with an equivalent extension for Azure Data Studio.

Servers 64
article thumbnail

T-SQL bugs, pitfalls, and best practices – window functions

SQL Performance

Run the following code to create the Transactions table and populate it with sample data: SET NOCOUNT ON ; USE TSQLV5 ; -- [link]. When you're done, run the following code to turn off performance statistics: SET STATISTICS TIME , IO OFF ; Also, don't forget to turn off the Discard results after execution option in SSMS.

article thumbnail

The SQL Server Basic Installer: Just Install It!

SQL Server According to Bob

Today we are introducing the new Basic Installer experience for SQL Server 2016 Express , SQL Server 2016 Developer , and SQL Server 2016 Evaluation Editions. We actually launched this functionality for SQL Server 2016 Express Edition when SQL Server 2016 RTM was announced but didn’t really promote this.

Servers 40
article thumbnail

SQL Server Mysteries: The Case of TDE and Permanent Tempdb Encryption

SQL Server According to Bob

My goal is to resolve mysteries about SQL Server I encounter but do this without going straight the source code first. At first glance in SQL Server 2016, you can see if a database is encrypted for TDE by looking at sys.databases.is_encrypted. I then verified my findings in the source code. Notice what is below it. Bob Ward.

Servers 40
article thumbnail

Introduction to Wait Statistics

SQL Performance

The execution of SQL Server’s internal code is done using a mechanism called threads. Each thread can be executing SQL Server code, and multiple threads coordinate together when a query runs in parallel. A scheduler has three basic ‘parts’: The processor , which has exactly one thread currently executing code. Scheduling.

Servers 40