| A community of more than 1,600,000 database professionals and growing |
| | Mitigate Issues Early This is a great postmortem from Basecamp with a detailed explanation of a problem and how they are hoping to avoid issues with their service. Basecamp is a Software as a Service tool from 37 Signals that had an outage recently. Actually, the service was up and could be read, but new items couldn't be added and existing items couldn't be changed. That somewhat defeats the purpose of the tool. 37 Signals recognizes this and notes that they're calling this downtime and not trying to get pedantic about the state of the service. I have sympathy here because I've gotten the same error in SQL Sever. I've reached the point where I had 2,147,483,647 items in a table. Any additional items caused an error, which some of you might guess. This is the largest positive INT value and if you've started at 0 and incremented all new rows, when you reach this mark, you can't add more data. There are a few fixes for this, including moving to negative numbers or changing to a bigint type. The staff at 37 Signals knew this was an issue and had actually set a new default for Basecamp that used a bigint in MySQL and PostgreSQL. What they didn't do is actually make the changes in their hosted Basecamp database because they thought they had more time. I've seen that before, often when an application runs at a higher workload than expected for a few years and DBAs aren't paying attention. When staff least expects it, the INT will reach the max value an clients start complaining. I've had to respond to an urgent phone call about this in a few companies. If you use INT values that are being incremented in some standard way, I'd likely set some alert process that triggers when the value gets to 2 billion or so, depending on how fast you use the numbers. SQL Monitor can do this with a custom metric, and I'm sure other software can as well, including SQL Agent. Having some monitoring in place will help you plan and be prepared to address issues before they cause problems. 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 ( 3.5MB) 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 | | The 4 pillars of SQL Server Monitoring 5 SQL Server experts; Grant Fritchey, Rodney Landrum, Kathi Kellenberger, Phil Factor and Tony Davis, use their many years of experience working and maintaining data systems to explain the 4 key strategies required for a successful, estate-wide monitoring solution. Download your free copy now |
| | Write, format, analyze, and refactor SQL fast with SQL Prompt Writing SQL is 50% faster with SQL Prompt. Your SQL code can be formatted just the way you like it, you can create and share snippets with your team, and with code analysis you get suggestions to improve your SQL as you type. Download your free trial |
|
|
|
| | | Erin Stellato from SQLServerCentral.com In this level, we're going to dig a little deeper into the Extended Events engine, its architecture, and fundamental components. It will give you a deeper understanding of why, in general, an Extended Events session is inherently lower in overhead than an equivalent SQL Trace. We'll also investigate how to design our event sessions to minimize any unnecessary overhead during event data collection, even when we need to create relatively complex event sessions to investigate difficult performance problems. More » |
| Press Release from Redgate When a SQL Server database is operating smoothly and performing well, there is no need to be particularly aware of the transaction log, beyond ensuring that every database has an appropriate backup regime and restore plan in place. When things go wrong, however, a DBA's reputation depends on a deeper understanding of the transaction log, both what it does, and how it works. More » |
| Data privacy and protection is a large concern across all organizations and knowing how to best approach it can be daunting. Grant Fritchey unpicks US legislations HIPAA and SOX to uncover exactly what is required of you and your team to ensure compliance. Download your free copy. More » |
| Additional Articles from Database Journal Relational Database Service (RDS) and Amazon Elastic Compute Cloud (EC2) are two different approaches, with their own advantages and limitations, for making Microsoft SQL Server (MS SQL Server) available and maintaining MS SQL Server databases on Amazon Web Services (AWS). More » |
| Igor Micev from SQLServerCentral Blogs Here are some basic guidelines that are good to consider when writing T-SQL (Transact SQL). These tips and hints are... More » |
| Mala Mahadevan from SQLServerCentral Blogs I am the proud host of TSQL Tuesday for the month of November 2018. My call to post entries is here .... More » |
|
|
| | Today's Question (by Steve Jones): I have this code in Python: ctr = range(2, 5) for i in ctr: print(i) What does this return? |
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: Python. 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): I have to store a series of negative numbers, all of which are between 0 and -100. What data type should I use in my table? Answer: smallint Explanation: We want to use the smallest data storage possible to ensure good performance. In SQL Server, we would use a smallint as tinyints do not allow negative numbers. Ref: int, bigint, smallint, and tinyint - 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. High memory utilization on SQL Server - Hello Gurus, I had emailed earlier but didn't get any response and googled but didn't get enough info: We have a prod... Relation table - Hi I have a table that may reference multiple objects (by integer ID) each stored in a different table there are... Inserting a new row into a table using a cursor - Hi all, I need help. I hope someone can provide some info. I have provided the SQL code below. Please note on... CASE Statement - I'm trying to add a new column to some code I have, and I am completely stumped. I was wondering if... sql server 2016 express installation headache - I installed sql server express 2016 on a windows 2016 server. Using the same extracted software, I installed SSMS using... Problem with executing SSIS Container, when not executed as standalone - Ahoi, Short introduction: I had a procedure that truncated and inserted a view into a table. The procedure is part of the... Inner joins - Hi all. Our current version is 2008 and we are going to migrate it to 2016 or 2017. In many stored procedures,... Change service ID password and now Domain account job fails - We used a password vault system to change and push the passwords for MSSQLSERVER and SQLAgent accounts on this specific... Dettach and attach as a restore mechanism - Hi I'm looking at some backup solutions/tools for SQL Server. I can see the tool takes regular backups, using SQL backup... Inquiry about joining tables - Hi All, Is there any difference between joining tables using inner join or specifying the join conditions after the where clause. Example: select... poor performing report query against table without a PK - The table is practically a heap because its' clustered index is on a column that allows NULLs, and there are... Encrypt Password - I used encrypt code to save password in a table and use user's email and encrypted password for login form. For... What can be the benefits of copy_only backup - Dear Folks, I want to understand what could be the benefits of copy_only backup except independent with the existing log chain SQL Agent Jobs showing NO history - Hi - We migrated to SQL 2012 and now a few SQL Jobs don't seem to have job history (and I... Reindexing and Log files - Hi all, Recently, we've had an issue with disk space on the server that houses our .mdf and .ldf files. As... The client was unable to reuse a session with SPID 799, which had been reset for connection pooling. - Hi SQL server version : Microsoft SQL Server 2008 R2 (SP1) - 10.50.2772.0 (X64) Enterprise Edition Windows version : Windows NT 6.1 <X64>... SSRS - repair / reinstall - How to? Evaluation period ? Is SSRS Free or not Free ? - Dear Forum, I wanted to do a repair / re-install of SSRS, because I'm having trouble with the web deploy part of... Databases using Reporting Server - Hi, Is there a way to see what db's are connecting to report server over the last 30 days. Hope... Help me with using Table values CLR function in OLE DB command in data flow task - HI All, I am struggling to use table value CLR function in OLE DB command in data flow task. I am... The client was unable to reuse a session with SPID XX, which had been reset for connection pooling. - Hi Guys, Need your help! We are receiving the below errors more frequently now. When ever we get this error, application... |
|
| This email has been sent to newsletter@newslettercollector.com. 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. 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: webmaster@sqlservercentral.com |
|
|