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

Daily Coping Tip

Find the joy in completing a task you’ve put off for some time

I also have a thread at SQLServerCentral dealing with coping mechanisms and resources. Feel free to participate.

For many of you out there working in a new way, I'm including a thought of the day on how to cope in this challenging time from The Action for Happiness Coping Calendar. My items will be on my blog, feel free to share yours.

The New Data Warehouse Choice

This editorial was originally published on 14 Jul 2016. It is being republished as Steve is on vacation.

I was listening to the SQL Data Partners podcast the other day with BI expert, Tim Mitchell, and the opening question was "Is the on-premises Data Warehouse dead?" Tim is a friend, so I tuned in knowing he has some good thoughts on the topic. It's an interesting listen, and one you might enjoy if you're at all interested in data warehousing and related topics. Spoiler alert, Tim says no, on-premise isn't dead, but he does point out some interesting things about the Azure SQL Data Warehouse (ASDW) and similar offerings.

One of the more interesting comments Tim made was about a health care company he worked for. They had an end of month process that heavily taxed their systems. If they didn't need that peak level of processing, Tim noted that the cost of their large data warehouse architecture would be that halved. That need to scale up dramatically can be a big savings in moving to a cloud based system, where you can pay for a much lower level of performance most of the time and increase your scale at particular times.

I know this is feasible as I worked with a similar situation. My employer purchased a very large system for our end of month and end of quarter closing load. Fortunately, we had an AIX machine that contained its own hypervisor. At the time (2001), we purchased a 32 processor server, with the idea that only 18 CPUs (and a slice of RAM) were running our financial systems most of the month. We had QA, development, and other guests on the same hardware. During the month closing, we would shut down some VMs and dedicate most of the processors to the finance system for a few days to handle the load. What's more, the IBM machine actually contained additional CPUs that we could "rent" from IBM for a few hours if we really needed them.

That's what data warehouses in the cloud can do for you. Certainly the decision to move to a cloud architecture is more complex than just having the scale up power of ASDW or Amazon's Redshift. The ability to load into the system, the development challenges, the tax implications, and more will impact the decision. I think the workload characteristics are also important. If you don't have a highly variable, or large peak, workload, then the cloud might make less sense. If you don't have any sort of data center, then maybe the cloud makes more sense.

I do think, however, that the decision to implement a new data warehouse isn't a simple one, and the cloud is a viable choice. The platforms are becoming more capable all the time, with more tools and scale options, as well as better performance guarantees. Many of the tools used to analyze data in a warehouse are more important than the underlying platform, with Excel, Tableau, Power BI, and more easily connecting to any data warehouse platform, in the cloud or on-premise.

This means that we will end up managing more disparate systems over time, especially in larger organizations where some groups will adopt cloud systems while others stick with on-premise installations. Certainly if you are a person that works with a data warehouse, you might want to build a small POC on Azure SQL Data Warehouse and see what you think about its capabilities. At least then you'll be able to add some educated and intelligent thoughts to the discussion when the question comes up inside your organization.

Data Platform Studio

How do you make the move to Microsoft Azure?

Azure SQL Data Warehouse allows you to move your SQL Server database into the cloud and access Microsoft’s massively parallel processing architecture when you need to. To help make the move, Redgate has been developing Data Platform Studio, a reliable and simple way to migrate on-premise SQL Server databases. Find out more.

 

Steve Jones - SSC Editor

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

 
 Featured Contents
Stairway to Advanced T-SQL

Stairway to Advanced T-SQL Level 10: Using Scalar Functions

Greg Larsen from SQLServerCentral

Learn about scalar user defined functions in this next level in the Stairway.

The 4 Presentations I’m Proudest Of, and What Inspired Them

Additional Articles from Brent Ozar Unlimited Blog

Take a look at some of Brent Ozars favourite public presentations, and hear the stories of how they came to be.

Free eBook: SQL Server Internals: In-Memory OLTP

Press Release from Redgate

In this free eBook, Kalen Delaney explains how Microsoft's 2016 In-memory OLTP engine works. In her book, learn how to use lock- and latch-free data structures to allow non-blocking data processing, and find out how to migrate existing tables to Hekaton.

From the SQL Server Central Blogs - T-SQL Tuesday #131 – Database Analogies

DesertDBA from The Desert DBA

This post is for the most recent #tsql2sday, a monthly exercise where a topic is proposed by a community member and everyone is invited to post their thoughts on...

From the SQL Server Central Blogs - Copying an Azure SQL Database

gbargsley from GarryBargsley

Copying an Azure SQL Database is a vital skill when managing cloud databases. Recently, a request was received from the “business”. They wanted to create a copy of an...

 

 Question of the Day

Today's question (by BTylerWhite):

 

Slicing a String in Python

I have the following variable declared in Python:
ssn = '123-00-4567'
I need to print only the last four characters of this Social Security number. Which of the following methods will best accomplish this goal?

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)

The Log File Structure

What is the physical structure of a transaction log file?

Answer: It is made up of records

Explanation: A transaction log file is made up of log records. There are no pages or extents. Ref: SQL Server Transaction Log Architecture and Management Guide - https://docs.microsoft.com/en-us/sql/relational-databases/sql-server-transaction-log-architecture-and-management-guide?view=sql-server-ver15

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 2017 - Administration
Capture data changes in a table - Easiet way to we capture data changes to a table.(without using CDC). I need to capture previous data and the new data. My setup process: Table A is reference table Table B is copy of reference table. It gets deleted and populated everyday. I need to send out an HTML email capturing the entire table […]
SQL Server 2017 - Development
Why when I use variables on SQL the Database Engine avoid the indexes? - I'm improving our SSIS process passing the variables through a "declare" and I found this: Here you have the plan execution using variables brentozar.com/pastetheplan/?id=rkSxs7VPv And here without variables brentozar.com/pastetheplan/?id=SJ8soXEww As you can see, when I use the "declare" SQL Database Engine don't use the Index. The index used is an nonclustered for the column used […]
SQL Server 2016 - Development and T-SQL
Executing another stored proc inside of a stored proc - Hello, Wondering if anyone has any insight into how I can do this:  I have a lengthy stored proc which produces a number of metrics that I may need to use for other calculations.  This stored proc uses OpenQuery to gather the data.  I would like to create another stored procedure that calls this stored […]
SQL Select for 70 Million records - Hi, We have two servers. Server A is source server which has  a table with 5 columns (2 int, 2varchar(50) , 1 datetime)with 50 million records init. On daily base from Server B SSIS package is used to read the table and just inserts into server B destination table. Due you business logic i am […]
Stuck trying to create a date table that shows week numbers for financial years - Hello All, Please can you help me with the following challenge: I need to create a date table to join against for another query. The table needs to indicate week numbers (for Fridays) for financial years (week 1 being the first in April) and also highlight the 3rd Friday of every month. I would like […]
SQL query for substring - I have data into table where i need to create 4 field from this one field. Here is data 1024-----555-666-P 1025-----333-6666-I 1026-----33-453-P i need data into 4 field like this way 1024 555 666 P 1025 333 6666 I 1026 33 453 I I have fixed 5 (-----) after first data then i have 1 […]
Development - SQL Server 2014
Two Tables - Values from one in columns and other in rows w/ data from a third - I'm not sure why my other topic was removed (maybe too much code in the post) so I'll try again. I have two tables. We'll call them Subaccounts and AccountCategories. The Subaccounts table has just that - a list of Subaccounts and their descriptions (1 per row). See the attached file (Subaccounts tab). The AccountCategories […]
Identical indexes - one clustered PK, another non-clustered - I found a pair of two identical indexes, containing  the same column - one is clustered primary key and another is non-clustered non-unique. When I suggested to remove the 2nd index, developers explained that we need both of them. First - for queries with wide column listing in Select clause, and the 2nd one - […]
Losing my decimal bits - Can someone tell me why the code below returns 5.0 instead of 5.2 please? declare @age decimal(10,1) declare @dob datetime set @dob = '2015-07-31 00:00:00.000' set @age = datediff(m,@dob,getDate()) / 12; print @age
SQL 2012 - General
Having lag in auto populate for part numbers in a program connected to SQL 2012 - I am new and if this is not the right area for this please let me know and if you could direct me to the right are it would be appreciated. We have reached out to the software vendor of the program and have not been able to get a resolution from them so I […]
SQL Server 2019 - Administration
Get list of databases from failed SQL Server instance - We recently had a major SAN failure and completely lost many of our SQL Server instances.   For many instances, we had no user database backups (this was by design due to storage limitations).   However, we have system databases for all of the lost instances.  I want to recover a list of the databases originally hosted […]
Find (Count) Joins inside Views - Good Afternoon All, I want to be able to count the number of joins used in views. We have a lot of views that are legacy and are awful. I was hoping to provide some kind of insight into what views could be improved or not used anymore -- using the number of joins as […]
Import/export - I am looking to export data from SQL 2019 to sql 2017. What if the tables have primary key and foreign key relationship how would be the export is done in that case. Please advise?
Reporting Services
Formatting Date in Microsoft Report Builder (NewBee) - Hello, A newbee question. I am attempting to group sales report by day, but the date format of data is date and time. This results in each invoice being listed as they have different date+time. I want a summary of all invoices by a day eg 1st if October, then 2nd of October. How do […]
SSDT
SSDT database project multiple references to another project - Hi, I'm experimenting a bit with SSDT database projects, and I've hit an issue that I have some solutions to, but they all feel a bit messy. I'm trying to get to a point where I can have several databases feeding off the same template, so repeated functionality can be maintained in only one place […]
 

 

RSS FeedTwitter

This email has been sent to {email}. 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.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

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