| A community of more than 1,600,000 database professionals and growing |
| | Reserved Space Many of us that work with SQL Server are familiar with the idea of reserving space that our system might need later. This is normal operation in SQL Server, where we pre-allocate space to data and log files, knowing that SQL Server will manage and use this space over time. This can often be a strange concept for newcomers to the platform, who expect our database behaves like a text file, only using the space it needs for data. Choosing the amount of space to reserve is an art that many of us both struggle to articulate and explain to newcomers. It's also a problem that we often solve by guessing high and implementing monitoring. Lots of people worry about storage, even in this era of TB sized drives. I ran across an article noting that Windows is reserving 7GB of space for updates, which makes sense to me. I've had a few updates for smaller devices, like mobiles, fail because of space. I think the idea of having some space reserved for temp storage and then using that for updates is a good one. I also recognize that I'm in a different place than others. Most of my devices have plenty of free space. Well, not my phone, but that's a separate issue. From the comments of the article, it seems that many people feel as I do. Reserving the space is a good idea. There are plenty of complaints about older, small storage devices, and I feel bad for those people. I've own a 32GB Windows device and over time it's a pain. Those devices likely need to have some sort of network/cloud storage to be usable, so There are also no shortage of the "Windows is already too large" complaints, but to me, those are separate discussions. Ensuring enough space is around for normal operation is one thing. Keeping extra around for emergencies and critical functions is another. I've been a big fan of placeholders on drives, especially database servers. I keep a few on all my drives, both on desktops and laptops. If I run low on space and really need some, I can make the decision to remove these without thought. Something I can't always do with other files. Like the DBCC SHRINKFILE, which lets us get out of situations where we've made a mistake in allocation, I'd like all OSes to include some options that remove older files, such as updates, temp files, etc. that we might not need, but could make a difference in our space usage. I know modern Android helps me when I'm low on space, and would like to see that in Windos. My other hope is that we get quantum, PB sized storage devices that can fit in our phone. I can't ever remember anyone on Star Trek running out of storage space on their drives. I look forward to the day in my life when that won't happen to me. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
| The Voice of the DBA Podcast Listen to the MP3 Audio ( 6.3MB) podcast or subscribe to the feed at iTunes and Libsyn. The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. | |
|
|
| ADVERTISEMENT | | How to track every change to your SQL Server database See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more |
| |
|
|
| | | 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. More » |
| Additional Articles from MSSQLTips.com In this tip we look at how to cleanup the SQL Server query store after a database has been restored to ensure that query store starts data collection starts fresh. More » |
| This article explains how to set up a SQL Server source control and database continuous integration (CI) process from scratch, using Azure DevOps, Git, PowerShell and Redgate tools, in three steps More » |
| Justin Figg from SQLServerCentral Blogs With our effort to talk about SQL Waits we come across another common wait called CXPacket. Last week we reviewed... More » |
| Carlos Robles from SQLServerCentral Blogs SSMS is the most common tool used by SQL Developers or DBA’s but unfortunately there are some features that are... More » |
|
|
| | Today's Question (by Steve Jones): I have loaded a dataframe into memory like this: nfl2018.qb = read.csv("nfl2018qb.csv", header = TRUE) This gives me this data: > head(nfl2018.qb) Rk Player Tm Age Pos G GS QBrec Cmpâ.. Att CompPrcnt Yds TD 1 1 Ben Roethlisberger\\RoetBe00 PIT 36 QB 16 16 9-6-1 452 675 67.0 5129 34 2 2 Andrew Luck\\LuckAn00 IND 29 QB 16 16 10-6-0 430 639 67.3 4593 39 3 3 Kirk Cousins\\CousKi00 MIN 30 QB 16 16 8-7-1 425 606 70.1 4298 30 4 4 Matt Ryan\\RyanMa00 ATL 33 QB 16 16 7-9-0 422 608 69.4 4924 35 5 5 Patrick Mahomes*\\MahoPa00 KAN 23 QB 16 16 12-4-0 383 580 66.0 5097 50 6 6 Derek Carr\\CarrDe02 OAK 27 QB 16 16 4-12-0 381 553 68.9 4049 19 TD. Int Int. Lng Y.A AY.A Y.C Y.G Rate QBR Sk Yds.1 NY.A ANY.A Sk. X4QC GWD 1 5.0 16 2.4 97 7.6 7.5 11.3 320.6 96.5 73.0 24 166 7.10 7.04 3.4 2 3 2 6.1 15 2.3 68 7.2 7.4 10.7 287.1 98.7 71.5 18 134 6.79 6.95 2.7 3 3 3 5.0 10 1.7 75 7.1 7.3 10.1 268.6 99.7 60.6 40 262 6.25 6.48 6.2 1 0 4 5.8 7 1.2 75 8.1 8.7 11.7 307.8 108.1 70.6 42 296 7.12 7.71 6.5 1 1 5 8.6 12 2.1 89 8.8 9.6 13.3 318.6 113.8 82.0 26 171 8.13 8.89 4.3 2 2 6 3.4 10 1.8 66 7.3 7.2 10.6 253.1 93.9 49.3 51 299 6.21 6.09 8.4 3 3 I want to rename some columns to make them easier to use. If I want to rename "Cmp." to "CompPrcnt", how would I do this? |
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: R Language. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
ADVERTISEMENT | Pro Power BI Desktop This book shows how to deliver eye-catching Business Intelligence with Microsoft Power BI Desktop. You can now take data from virtually any source and use it to produce stunning dashboards and compelling reports that will seize your audience’s attention. Slice and dice the data with remarkable ease then add metrics and KPIs to project the insights that create your competitive advantage. | | |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I want to change the default data directory on my SQL Server on Linux installation from /var/opt/data to /prod/data. What command should I run? Answer: use mssql-conf with the "set filelocation.defaultdatadir /prod/data" parameter Explanation: The mssql-conf utilty is designed to alter the configuration of various items in a SQL Server on Linux installation. One of these is the default data directory. To change to the /prod/data folder, the comand would be: sudo /opt/mssql/bin/mssql-conf set filelocation.defaultdatadir /prod/data Ref: Change the default data or log directory - click here » 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. SSRS DB restore - Hi, I restored all databases from my old server to a new server.This includes reportserverdb and reportservertempdb. After restoring reports are not... How to schedule database backup in SQL Server Express edition - Hi, How to take/schedule database backup in SQL Server Express edition (latest version) Required log backup every day with 1 hour interval... Calculate daily meeting times for each employee - Hi I have 3 columns (Meeting types) (datetime) and 3 columns with meeting type durations (float). I also have an... trying to learn SQL development - can some one help me learn by asking some questions on query building basically tasks. also it would help me... SQL query to only return a row based on fluid conditions - I know this is possible but am unsure how to set this up. Basically I am needing to pull data... TDE and absolutely ridiculous amounts of corruption? - I've searched around quite a bit and can't find anyone else with this problem, but ever since we implemented TDE... Get count for changed value - Hi, I need to to something similar for TOwners like I have for WorkDone in the code below . I am looking... Dynamically outputting a set of columns based on another Tables records - I have a table (called #OutputTable) which i would like to be able to dynamically select certain columns from For... Order BY clause in View using Stuff Function. - I have two views. My First View definition CREATE VIEW FIRST_VIEW AS SELECT PT.F_PRODUCT AS F_PRODUCT, PT.F_TEXT_CODE AS F_TEXT_CODE, PHT.F_PHRASE AS F_PHRASE,F_COUNTER... access token value - Hi, i have the below script : { "access_token": "7mYWLVjfbttKjxT4_T_rL8SGFMKHjjjhhiTTkklkhKHKKHKKxatwAUi2BaD5e6uJcRPdP9Gf261RnwUZQf4X7jfAfh8BgoQ7pHsj4z9VqlaZ3FdI8t7TZs0P-txg0JU-zJg", "token_type": "bearer", "expires_in": 3600 } and i need to extract access_token value 7mYWLVjfbttKjxT4_T_rL8SGFMKHjjjhhiTTkklkhKHKKHKKxatwAUi2BaD5e6uJcRPd Incremental load based on ID and Date - I have a stage where data ported from one source and it needs to be loaded in detail table based... Question on Grouping -Working number of days - Hi All, I am trying to work out the number of days for each (CODE) from the Code (REQUEST DATE) till... Question on grouping - SELECT AUC.AUCTION_NAME_LONG, Determine who dropped a SQL Server Database - Running SQL Server 2008 R2 Standard. I see in my log exactly one week ago that a particular Database was backed... storing Image in Database (SQL Server ) vs File System - Dear All In My scenario we are handled more then 1 TB size images.Last couple of years we are storing all... Coding for Failure? Or Just Planning for Issues? - A lot of times, when developing SSIS packages, I find myself adding tasks and components to help handle the situation... Upgraded Visual Studio 2015 Community to Visual Studio 2017 Pro, Can’t Open Existing SSIS Packages - Hello, I am on Windows Server 2012 R2 SE, and SQL Server 2016 SP1, and I have developed several packages... SSIS Connection String by Project Variable - Hi there, I have a For Each Loop Container which goes through all files in a folder to do the full... Entity Framework & RowVersion - Hi all, One of our developers has put a rowversion field with the datatype timestamp into all of the tables of... Equivalent of 'DECODE' in sql - Hi all, :) Can anyone provide me with correct syntax for' 'DECODE' function equivalent in sql. Thanks, kiran. |
|
| 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 ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|