| A community of more than 1,600,000 database professionals and growing |
| | The Cost of Database Downtime Many of us work on a database of some sort. For most that is probably SQL Server, but it could be some other platform as well. Whether we are directly in charge of managing the system or not, I would guess most of us would also prefer the system to be working. When we go to connect, whether to our development system or a production application powered by a large database platform, there's not shortage of irritation if the database isn't available. Many of us try to ensure that we don't intentionally or unintentionally cause our database systems to go down. There are enough times we have to stop and start our servers for patches or some other update, not to mention the occasional deployment that might interrupt the use of parts of the system or even an entire database. When I've been responsible for actually managing database systems, I made it a point of pride to have as little downtime as possible, building solutions to minimize the impact to users of any maintenance operations. Do you know what the cost of database downtime is in your company? I would likely have no idea in most of my organizations, though I'm sure salespeople could tell you there's some measurement they'd use. Amazon knows what downtime costs them because they likely have a good idea of what the sell every minute of every day. If they're down, there aren't any alternatives for customers to purchase anything from Amazon. However, if you're not in the direct business of selling something through your database platform directly to customers, you might not have a large cost. I've worked in companies where we relied on those computer systems, but we went down for hours, sometimes a day or two and salespeople rolled back to paper. Eventually they'd have to catch up later, and since some of those people were paid by the hour, there certainly was a cost. For many of us, however, downtime meant a longer work week, catching up on work once systems were up and running again. In one large organization where we sold software by the 10s or 100s (or more) of thousands of dollars, SQL Slammer shut down many systems for three days. It was a rough week, but the company continued to make sales and since most people were paid a salary, they were rather upset at us database people. These days I'm sure there's a direct number for my employer if the database backing their main site goes down. We do sell some products directly there, though I think more come from our salespeople. However, I'm sure any downtime would be quite frowned upon. However, I wonder if the cost would be thousands of dollars a minute. There is a report for that database downtime averages $7900/minute. My guess (if that's true), is that we have something other than a normal distribution. There are probably some outliers that cost crazy amounts of money if their database goes down, while for most of us, it's an inconvenience or a small cost in the short term. Across a longer period (weeks), downtime might shut down the company. No one wants downtime. Whether you're a developer that caused it with code that doesn't access the database properly, or an administrator that started some operations that blocks access to the database. I wonder if we quantified the actual cost to our systems, maybe we'd actually see management taking more of an interest in ensuring that software quality and maintenance practices were performed at a higher level of quality. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
|
| ADVERTISEMENT | | Not enough hours in your day? The SQL Toolbelt lets you reduce the time spent on SQL Server development and administration. Cambridge University developer David Spaxman, for example, says: “I’m saving 10-12 hours a week using the SQL Toolbelt.” Learn how you can double your productivity, speed up deployments and protect your data. Download a free trial. |
| | NEW SQL Clone - version 1 available now! Create copies of production databases and SQL backups in seconds and save up to 99% of disk space using SQL Clone. Redgate’s new tool removes much of the time and resource needed to create and manage database copies, allowing teams to work on local environments to develop, test and diagnose issues faster. Try it free. |
|
|
|
| | | 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 » |
| Additional Articles from Database Journal One of the concepts that has recently been growing rapidly in popularity, in the context of cloud technologies, is DevOps. In this article, Marcin Policht looks at using DevOps principles in regard to Azure SQL Database deployments. To implement some of the more common DevOps practices, he will rely on Visual Studio Team Services. More » |
| matthew.mcgiffen 73574 from SQLServerCentral Blogs In this post we’re going to create some encrypted columns in a table in a test database and look at... More » |
| Steve Jones from SQLServerCentral Blogs takes place in a few weeks and I’m excited. Austin is one of those cities I enjoy visiting, with a... More » |
|
|
| | Today's Question (by Steve Jones): I write a window function query, such as this: SELECT firstname, lastname, team, MAX([points scored]) OVER (PARTITION BY team ORDER BY minutes) FROM dbo.[NBA_Playoffs_All-time_Player_Stats]; In the window, what is the default partition size for the window in the query? |
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: T-SQL. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): When I start SQL Server with a minimal configuration, which of these things are true? (choose 3) Answer: Only a single user can connect to the instance Read-ahead is disabled Startup stored procedures do not run Explanation: The items that occur with minimal configuration are that only a single user can connect, Checkpoint is not executed, remote access and read-ahead are disabled, and start stored procedures do not run. Tempdb also is not used, but this is not documented. Ref: Start SQL Server with Minimal Configuration - click here » Discuss this question and answer on the forums |
|
|
| | Jonathan Roberts from SQLServerCentral.com I needed a procedure reset a Data Warehouse. To do this I needed to truncate all the Dimension, Fact and Bridge tables. This stored procedure allows the fast truncation of any table that has foreign keys referencing at columns on the table. It drops all the foreign keys referencing the table to be truncated, truncates the table, re-creates the foreign keys. The call to the stored procedure is: EXEC dbo.INFTruncateTable 'Orders', 'dbo' To process an entire database a script can be set up that will process each of the tables: DECLARE @Debug bit = 1 SET NOCOUNT ON DECLARE @TABLE_SCHEMA sysname, @TABLE_NAME sysname DECLARE @TablesToTruncate cursor SET @TablesToTruncate = cursor FOR SELECT t.TABLE_SCHEMA, t.TABLE_NAME FROM INFORMATION_SCHEMA.TABLES t WHERE ( t.TABLE_NAME LIKE 'Fact%' OR t.TABLE_NAME LIKE 'Dim%' OR t.TABLE_NAME LIKE 'Bridge%' ) AND t.TABLE_SCHEMA = 'dbo' AND t.TABLE_TYPE = 'BASE TABLE' ORDER BY t.TABLE_NAME OPEN @TablesToTruncate FETCH NEXT FROM @TablesToTruncate INTO @TABLE_SCHEMA, @TABLE_NAME WHILE @@FETCH_STATUS = 0 BEGIN IF @Debug = 1 BEGIN PRINT 'EXEC dbo.INFTruncateTable ''' + @TABLE_NAME + ''', ''' + @TABLE_SCHEMA + ''', ' + CONVERT(varchar,@Debug) EXEC dbo.INFTruncateTable @TABLE_NAME, @TABLE_SCHEMA, @Debug -- Debug only END ELSE BEGIN EXEC dbo.INFTruncateTable @TABLE_NAME, @TABLE_SCHEMA, @Debug END FETCH NEXT FROM @TablesToTruncate INTO @TABLE_SCHEMA, @TABLE_NAME END CLOSE @TablesToTruncate DEALLOCATE @TablesToTruncate 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. Connecting to Named Instance - On my host I can connect to two instances by typing: . (this connects to the default instance of a 2008... SQL Server Disk Latency - Hi Folks, we have a curious situation that I can only partially explain. A SAN that hosts a large highly-transactional database reports... XCOPY failing via xp_cmdshell - I am trying to copy files from our hosting site server to pur local server with XCOPY. If I log... Multi-Site Cluster SQL Server 2016 AlwaysON Infrastructure - Hello, I have two production site. I want to design a new SQL Server 2016 AlwaysOn Cluster for two production... Extract only the filename from a file path - Hi Folks, is this really the best way to extract the file name from a file path? select replace( reverse( left( reverse(physical_name) , charindex('\', reverse(Physical_Name)) ) ) , '\', '' ) as... Tempdb allocation and Tempdb filling up - Hi, I have an odd situation. We have hosted our SQL servers on AWS (Amazon Cloud), and we have some overnight jobs... Auto Update Statistics - Hi I would like to understand when Statistics will automatically update? From what I read, it is based on modification of the... Improving performance using partitioning - Hi All, I have a few related tables that are becoming big in size and row count. The Header table has a... execute process task and 'Request Operation Requires Elevation" error - Hi, Getting the message " Error: An error occurred with the following error message: "The requested operation requires... Date conversion in ssis - Hi Team, I am trying to convert this date format "11-APR-2016 11:24:36.000000" in derived column in ssis but i am getting... There is insufficient system memory in resource pool 'default' to run this query. - Dear MVPs I am trying to run a script containing 500000 update statements similar to the one below: UPDATE dbo.MEMOPOOL_DATA SET... SQl Multiplication to 2 digits doesn't add up to the exact decimal - Hey Guys, I have this situation where I output to a csv which uploads to another system and the system check... calling back function - hi.. how can i call back the function dynamically? i create a function. ALTER FUNCTION . (@input nvarchar(max)) RETURNS VARCHAR(250) AS BEGIN DECLARE @check1... Table size and indexes - How many rows does a table need to have before you start thinking about adding an index? SSRS results to be exported to SFTP folder - Hi , i would like to know if there is a way i could export the results from a subscription in... Convert Date Time Parameter to String - Hi, is it possible to convert a date time parameter to a string? I have parameters @StartDate and @EndDate which are DateTime... EXCEL HELL!!! - Please see the attached spreadsheet and please understand that when it comes to SSIS, I don't even qualify as an... No PKs on fact tables - I just inherited a data warehouse where none of the fact tables have a primary key (all fact tables are... Latest - When clicking on the "LATEST" button in the forums it really isn't the latest because if you sort by Last... Deinstall express edition - We have an ancient version on SQL express on a 2008 r2 server. We need to deinstall it. The original... |
|
| 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. 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: [email protected] |
|
|