Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Evergreen SQL Server

This editorial was originally published on Jul 24, 2019. It is being republished as Steve is traveling today.

Colorado is a beautiful state, one that my family and I have enjoyed many times. We like the summer and winter outdoors, including lots of days skiing. We have plenty of trees on the slopes, which is both great to view and a series of obstacles to avoid. Fortunately, the pines and spruces keep their needles all year round and are easy to spot.

Recently I caught a press release from Microsoft about the Azure SQL Server platform. It was written as support for SQL Server 2008 and R2 comes to an end. Microsoft certainly wants to pressure those customers to upgrade, as there are lots of them out there and this would be quite a bit of revenue. It's been nearly a decade since R2 and over that for SQL Server 2008. There are a few options Microsoft has for you, though the move to an IaaS system in Azure with 3 years of support might be the only feasible one if you need support for some business reason.

There are other options, and the post calls out some of these as evergreen SQL. Both the Managed Instance and Azure SQL Database are listed here, because there's no need to patch or upgrade these platforms. Microsoft handles this for you, though that's not necessarily as simple as you might expect. I don't know how vendors will deal with Microsoft upgrading code, but certainly your in-house applications that might be built with workarounds for the various bugs that people stumble upon need to be prepared to change code if the bugs fix and behavior changes.

I do like the idea of not needing to patch SQL Server and having the code improve and grow. I also like the idea of my code working and not breaking. While Microsoft has noted they don't plan on removing functionality (deprecated just means there's a better way you should use), what about the features that have bugs and the current behavior needs to change? That can be challenging for in-house development teams, but also a hassle for ISVs.

Perhaps this will get ISVs to write code that handles patches and upgrades. Perhaps this means that we won't get stuck on RTM or SP 1 of some old version of SQL Server because a vendor doesn't want to test and certify their system on patched code. Perhaps it also means they'll write the most basic, generic SQL that uses limited features and will work everywhere without them spending any resources verifying their code. I worry the latter more than the former will be the result of evergreen SQL Server.

Do you want a version of SQL Server, as an instance, a database, or some hosted service that you never patch, but Microsoft does? I wonder how many of you look forward to evergreen SQL for your code.

Steve Jones - SSC Editor

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

 
  Featured Contents
Stairway to Transaction Log Management

Stairway to Transaction Log Management in SQL Server, Level 2: A Brief Overview of Transaction Log Architecture

Tony Davis from SQLServerCentral.com

In order to make it easier to understand truncation, space reuse and fragmentation in the log file, Tony gives a brief explanation of how the transaction log works.

External Article

Your SQL Server Needs Spring Cleaning, Too.

Additional Articles from Brent Ozar Blog

First things first: pick up that filthy keyboard, take it over to the trash can, turn it upside down, and give it a good, vigorous shake.

Blog Post

From the SQL Server Central Blogs - Testing for End of Month in PowerShell

alevyinroc from FLX SQL

This is one of those blog posts you write so that 2 years later, you can look it up to remind yourself how to do something.
I found myself needing...

Blog Post

From the SQL Server Central Blogs - How To Restore Change Data Capture – CDC Tables When Restoring a SQL Server Database

Tim Radney from Tim Radney - Database Professional

I have recently had the privilege of working with multiple clients who have been taking advantage of Change Data Capture “CDC”. Change Data Capture is a feature that utilizes...

Practical Graph Structures in SQL Server and Azure SQL: Enabling Deeper Insights Using Highly Connected Data

Site Owners from SQLServerCentral

Use the graph table features in Azure SQL that were introduced in SQL Server 2017 and further refined in SQL Server 2019. This book shows you how to create data structures to capture complex connections between items in your data. These connections will help you analyze and draw insights from connections in your data that go beyond classic relationships.

 

  Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Execution Plan Operators

When looking at an execution plan in SSMS, what types of operators are shown?

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

 

 

  Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Removing Log Shipping

If I want to delete a log shipping secondary server where only one database is used to restore the logs, what should I do?

Answer: Run a system proc on the secondary to delete the database and the restore jobs

Explanation: If there is only one secondary database on an instance, the system proc sp_delete_log_shipping_secondary_database will delete the database and the jobs. Ref: Removing Log Shipping - https://learn.microsoft.com/en-us/sql/database-engine/log-shipping/remove-log-shipping-sql-server?view=sql-server-ver16

Discuss this question and answer on the forums

 

 

 

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 - Administration
Just To Talk – Your Safe Space for Online Therapy - Welcome to Just To Talk, your trusted platform for compassionate, confidential online therapy. At Just To Talk, we understand the power of being heard. Whether you're managing stress, anxiety, or simply need someone to talk to, our licensed professionals are here to support you. We offer flexible, affordable sessions designed around your needs—all from the […]
SQL Server 2019 - Administration
SSPI handshake failed error code 0x80090311 - Hi, I have a workstation with SQL Express 2019 installed and I have a PC with a .NET application built in VB.NET. The App logs in as Attendance and the SQL PC logs in as Phone System. They are on the same domain and the SPNs match the server and Attendance has access to the […]
SQL Server 2019 - Development
Merge spans with Dates Logic - --for a given member if the startdate and endate is continous we need to keep in single record and if start date and end date is not continous i need to keep in separate record for a given member.   drop table #test create table #test (ID int, startdate datetime, enddate datetime ) insert into […]
Problem creating a Linked Server to MS Access 97 database from SQL Server 2019 - Hi there I need help on creating a Linked Server to an MS Access 97 database from a SQL Server 2019 express instance. We have a SQL Server Express 2019 instance and we are trying to create a Linked Server to an MS Access 97 database located on a network drive. Now I know that […]
continuous membership - Hi, I am trying to find everyone who had membership for a continuous year without any gaps. The sample below shows two members, one who is correct,760890291, and should be returned but the other one, 82928404, should not but it does. My code is below. What would I need to change? Thanks.   CREATE TABLE […]
SQL Azure - Administration
Azure Managed Instance Backups - Could Backup Be Completely Lost? - Some of our more regulated customers (banks, gambling sites and suchlike) like to know that we have a robust and tested recovery routine. We use Azure Managed Instance (MI) and the backup/restore process for 'normal' requirements is quite simple. But this had me thinking - is it possible for Azure to be in such a […]
DP-300 exam - Hi, I would like to know if anyone has taken the DP-300 exam recently, so that they can recommend some material for me to study. The company I work for has taken on a project and I need to get this certification as soon as possible. Thank you.
Reporting Services
Multiple value Parameters in SSRS connecting to Teradata returns error - I am connecting to Teradata using SSRS and have multiple parameters, many of them that seek multiple values. The challenge is all these parameters may not be always filled, sometimes it could be blank. So I am using a logic as below - Select * from Table Where (Param1 in (?) or ? = '') […]
Integration Services
SSIS Automatically Coverting a NULL to a Blank Space - Hello, I was wondering if anyone knew how to prevent this issue I am experiencing. I have a SQL Source with a query that is just selecting data where fields are casted as a varchar value. When running the query in SQL Server, the values either have a valid value or are null as expected. […]
how to export clickable urls in excel from SSIS - I'm using ssis to copy excel file from a template, and update some cells on each copied files. problem is that after generating the Excel filen when opening it, the cell that is supposed to contains the clickable url is still I have to select the cell, then click on the formula bar and then […]
PostgreSQL
Need query help - MAX record - Hello - I have attached a Word document here with details about my issue. I have shown an excerpt from the main table in the first section.  There are 5 different records for the subscriber in question. The second section shows how the MAX command restricts the output to 2 records.  This output makes sense. […]
Need query help - MAX record - I am having trouble writing linking the MAX query that I created back to the table to produce other data elements about the MAX record.  I have created a Word document showing an excerpt from the main data table, how the MAX query pulls in the appropriate records, but then I am stumped on how […]
SQL Server 2022 - Development
Need help with merging data based on date and process - I have two sources , one coming from datalake and another is file. we need to match date to combine both dates. But , the data from source may not be avilable daily or might be delayed. So, we have data from source coming daily but data from file comes only from Tuesday - Saturday […]
Migrating data from using ManagerId to HierarchyId - I have a table called Person with the following schema: CREATE TABLE [People].[Person]( [Id] [smallint] IDENTITY(1,1) NOT NULL, [FirstName] [nvarchar](50) NOT NULL, [LastName] [nvarchar](50) NOT NULL, [LineManagerId] [smallint] NULL, [OrganisationLevel] [hierarchyid] NULL ) ON [PRIMARY] GO LineManagerId is a FK to the People.Person table to identify the person in the table who is the Person's […]
Parse SQL XML column into dynamic temp tables - Hello SSC, I hope everyone is happy and healthy and ready for spring! I am looking for some alternatives to parsing an XML column in SQL. I have over 1000 rows in XML format that I would like to parse one time into a SQL table or multiple SQL tables. The caveat is that the […]
 

 

RSS FeedTwitter

This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
[email protected]

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -