Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
Ad for State of Database Landscape survey
The Voice of the DBA
 

Reducing Cloud Cost

Cloud costs are high and growing. Some orgs think they're out of control and are trying to limit spend. Some orgs are looking to leave the cloud. A lot of IT spend over the years has been seen as a cost center, with many executives trying to limit the growth or spend, even while they aim for digital transformations of their businesses. Throughout my career, it's been interesting seeing the tension of groups trying to take advantage of technology and the finance departments trying to manage costs.

The cloud brings some of the same debates/arguments/concerns to the forefront. Partially because of scale, as we can add cloud resources much quicker than we can with a CapEx purchase. Partially because we've also often lost some control over budgeting with the move to OpEx and the subscription paradigm.

However, the bigger problem is that we get a true chargeback for all the resources we use. This is done in a way that exceeds what I used to see with mainframes. In those days each department got a monthly report of their usage, applied against their budget. In the cloud world, finance gets a real bill they have to pay, and the chargeback is not a made-up number for internal use.

How can you reduce the cost in the cloud for your database (or all data) resources? The easy answer to start is to get rid of those resources that aren't being used. How many databases have been created for dev/test and aren't actively used? That's often an easy chore, and one that could be scripted. Though I'd want to include backups of anything I get rid of that might be reused. That might include dev systems rarely used. Keeping a backup that I can use to restore to a new resource later is always a good idea.

In line with this, you might look for underutilized instances, especially for VMs or expensive services like Managed Instances. There can be a cost overhead for these systems, and if every application/department/etc. uses a separate system, there might be cost savings from consolidation. However, don't just move databases. Ensure you aren't creating a security risk or overloading the system with moves. That requires some analysis of the current systems and buy-in from those with security concerns.

However, the biggest win in reducing cloud cost is to performance tune your code. This is something many DBAs request on a regular basis, but often there isn't any push to write better code, or utilize better patterns of querying that might reduce the amount of CPU, memory, and network traffic. Learn how to write better performing queries, limit the data returned (no SELECT *), watching out for datatype conversions, and using other techniques that people write about at SQL Server Central every day. We constantly answer questions and publish articles on better ways to write code, so invest the time to ensure your teams can and do write better code. Make sure you train your staff and they use their training.

Lastly, you are in the cloud because you're willing to change how you work. Don't be afraid of changing your existing code. If you refactor and break something, change it back. The cloud makes this easy, so take advantage of that and keep improving your code.

Steve Jones - SSC Editor

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

PASS Summit 2025 is fast approaching
 
 Featured Contents
Stairway to Hyperscale Icon

Stairway to Azure SQL Hyperscale Level 4: Log Service and Transaction Management

Chandan Shukla from SQLServerCentral

Learn about how the Log Service helps manage transactions in the Hyperscale Tier.

External Article

Query Plans Pop Quiz: Three Simple Questions

Additional Articles from Brent Ozar Blog

Can you answer these questions?

From the SQL Server Central Blogs - Fabric as a Data Mesh Enabler: Rethinking Enterprise Data Distribution

Chris Yates from The SQL Professor

For decades, enterprises have approached data management with the same mindset as someone stuffing everything into a single attic. The attic was called the data warehouse, and while it...

From the SQL Server Central Blogs - Truncate Table Pitfalls

peter.skoglund from SQL Development Wizard

 Truncate Table Pitfalls
Truncating a table can be gloriously fast—and spectacularly dangerous when used carelessly. If you want the speed without the face-palm moments, here’s a practical, interview-ready guide to...

Architecting Power BI Solutions in Microsoft Fabric

Steve Jones - SSC Editor from SQLServerCentral

Business Intelligence (BI) tools like Power BI are used by a wide range of professionals, creating diverse and complex scenarios, and finding the right solution can be daunting, especially when multiple approaches exist for a single use case. The author distills his 17 years of experience on various data platform technologies in this book to walk you through various Power BI usage scenarios.

 

 Question of the Day

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

 

Slip Streaming Installs

What does a slipstream installation mean?

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)

Striped Backup File Limits

In SQL Server 2022, how many backup files can I have in a striped backup?

Answer: Up to 64

Explanation: 64 is the limit. Ref: Backup - https://learn.microsoft.com/en-us/sql/t-sql/statements/backup-transact-sql?view=sql-server-ver17

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 2019 - Development
Collation errors...what is best way to deal with it? - Hi I have a SP that occasionally get this error: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation. The query is close to 1000 lines long so I have no idea where this is without examining each line.  Is there a way to set the collation in the SP […]
Was the index created or not? - Hi everyone I am getting an error when I create the index but I don't get any errors when I save and run the SP.  Does this mean the index was created or not?  Is there a way to verify?  The index is on a temp table. Thank you
Some query values change when query is run but not others. Why? - Hi everyone I have a 1000 line SQL query that is too long to put here so I will explain the basic logic and what the issue is. The query processes stock market data and produces a daily metric for each symbol.  There are close to 4000 symbols that get the metric created daily. I […]
using different credentials when debugging ssis - hi, now and then i want one connection in my ssis pkgs to use different creds from others.   It comes down to my admin vs my regular id.   And that basically i'm somewhat limited when i run vs under my admin acct.   Is there a way to do this?
Integration Services
SSIS Package is reporting successful however is short 80-100k records - Good morning all, I have been running into a very random weird issue that I am hoping someone has experienced and can stop my head from spinning. We have 4 environments we run about 150 flows that connect to Oracle to pull data into 4 different SQL Servers. Let's called them Dev1, Dev2, Test and […]
Editorials
We Should Demand Better - Comments posted to this topic are about the item We Should Demand Better
Article Discussions by Author
Estimated Rows - Comments posted to this topic are about the item Estimated Rows
Identify Unused Tables in SQL Server and Azure SQL - Comments posted to this topic are about the item Identify Unused Tables in SQL Server and Azure SQL
SQL Server Advanced Troubleshooting and Performance Tuning: Best Practices and Techniques - Comments posted to this topic are about the item SQL Server Advanced Troubleshooting and Performance Tuning: Best Practices and Techniques
T-SQL Fundamentals - Comments posted to this topic are about the item T-SQL Fundamentals
Murach's SQL Server 2022 for developers - Comments posted to this topic are about the item Murach's SQL Server 2022 for developers
AlwaysON health check alerts - Comments posted to this topic are about the item AlwaysON health check alerts
Bat and SQL script to generate DB user permissions for all Databases in SQL server - Comments posted to this topic are about the item Bat and SQL script to generate DB user permissions for all Databases in SQL server
PWDCompare - Comments posted to this topic are about the item PWDCompare
SQL Server 2022 - Development
Parameter sniffing issue with different minutes as opposed to using midnight - Hej, I'm not facing this issue but as I was working another parameter sniffing issue I came to think about this and if it might cause an issue? So I'm more looking for your experience in the past and more an answer of kind "Nah, you'r good" or "You should definitely go with rounding to […]
 

 

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

 

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