One of my favorite memes is Wrong Answers Only, where you show something and people have to answer incorrectly, like this and this and this.
So now it’s your turn: you’re in SSMS, you right-click on a database, and go into Tasks:
What does that bottom right task do? Wrong answers only.
I heard it limbers up your SQL Server so it performs better under heavy loads. Protects pages from splitting, that sort of thing.
That menu clearly activates “SQL Voodoo” up in the cloud, don’t trust it! 😉 Honestly, looking at the docs its quite an interesting feature. Thanks for posting Brent.
If you want to know what a button does, you goatse for yourself, and you click it.
Folks, please don’t google “goatse” if you don’t get the reference. Just be comfortable in knowing that you’re better off being in the dark on this one.
That? It opens a dialogue that allows you to do precisely what it says — stretch the database out to between 101% and 200% of its current size, so that you can finally get that disk space you’ve been asking for for years. Turns your proactive failures into a reactive success. It can’t be run if the database is part of a replication setup, is part of an AG, or uses the TEXT/NTEXT /IMAGE data types.
Shrink is, of course, the opposing operation; which you should only run once the space is available to the instance. Some people can’t grok this however and wonder why nothing happens when they fire SHRINK* files off at random.
My fake answer is apparently here instead of one level up, probably because I was originally going to reply to tell Andy Mallon that they’re A Bad Person 🙂
This is an accurate statement
I dunno, man. Maybe you just need to soak in the tub, boy.
(PLEASE don’t google that if you don’t already know what it is!!)
Allows you to stretch the database to azure?
Allow you to send your data somehere up in the clouds! And then rains with meatballs! And George Clooney will visit!
a quick and easy way to increase all the datatypes in a database. ints become bigints, varchar(255) becomes varchar(510), varchar(max) becomes nvarchar(max) etc.
Stretches your patience
Makes it so your data is more dense in the beginning and the ends of your tables, adding sparse rows in the middle.
Improves Keys performance because we all like stretchy pants.
Stretch your wallet and enter into this fancy world of cloud ( AKA database made in heaven supported by Angels)
Shows Yoga pose of the day.
This is the best answer, and would also be the best Easter egg ever. 🙂
Everyone knows you must stretch your database before you use it!
Gets the kinks out of your database.
It causes your sql server to take a Yoga stretching break to relieve its stress and constipation. 🙂
It increases fill factor by 20%. Repeated clicks of this button will fail with an undocumented error once fill factor is 1%.
Stretches the task – says so right on the menu. I assume that’s like a scope creep or something.
It increases the font size on all varchar and nvarchar columns by 2 pts and changes the font to Comic Sans to use more pages.
It’s used to rollback an accidental shrink
OK, this one made me laugh!
I like Mark’s answer but it is too passive. Here is what it actually does – Signs the clicker up for a Bikram Yoga 30 Day Home Yoga Challenge. The course is mandatory because Microsoft believes that the more hot yoga done by coders/dbas the better their code/databases will be. Also, the CDC has learned that coders/dbas spread viruses due to sloppy code practices so they have enlisted the federal governments police powers to ensure programmer/dba compliance. Finally, the home course is required because of the Covid-19 problem and the thought of a group of us in spandex, sweating and grunting was too much for the mind to grasp
It increases the size of a Pizza “Stretching Out Pizza Dough” 🙂
Typical Microsoft, they give a Stretch option in the GUI, but every good DoughBase Administrator knows you have to use the DBCC KNEAD() function first for best Stretch performance.
It stretches time, but only for queries which approach the asymptote, and should only be used aboard high-velocity STL spacecraft.
It immediately begins playing this movie: https://m.imdb.com/title/tt2494280/
Increases free space in the database by reducing fillfactor in all indexes. It also dramatically increases any costs associated with the database.
It stretches each individual page in the database’s data files, doubling them in size from 8k to 16k, and effectively doubling the overall size of the database. This operation can only performed once! Over stretching the database would cause flimsiness…
Yess!!! Finally I won’t get that “Cannot create a row of size 8092 which is greater than the allowable maximum row size of 8060” when I try to add the 765th column to my table! Thanks Microsoft!
Makes the database more limber for being worked out…
increased ranges to slow degeneration,
improves posture to help with better disk alignment,
makes database more flexible requiring less resources and improves overall performance,
and helps lessen tension and stress on the system overall.
Causes SQL Server to operate properly for ninety seconds so you can get up and Stretch.
It reminds you that you’ve been working too hard, sitting in that same chair for way too long, so get up and stretch!
It permits the operator to stretch the statistics for the application database so they are available through a linked server query connection thus eliminating the parameter sniffing issues for the remote SQL query.
Starts a Kickstarter stretch goal to buy more storage space
Prior to any big workout, always a good idea to stretch.
Turns 1 GB of space into 1 TB!
Stretches your entire body from your bed to the cloud….hmmm
Stretches the window from 4:3 to 16:9 aspect in the event you’re still running SQL 2000.
After loading all of your company’s data and KPIs into the database, use Tasks > Stretch to generate stretch goals. Note: Stretch goals are estimated in query plan cost values only.
SQL Server by default runs queries from a full windup, for backward compatibility reasons. Switching to a stretch will allow you to more easily keep an eye on other queries running at the same time. (Note that this is available only in the Enterprise Edition.)
Stretch: It’s best described as the SQL Shard feature for SQL Data Lake to stretch this puppy from SQL into PostgreSQL, Oracle and/or NoSQL all at the same time so you can easily STRETCH your on premise, easily accessed, single database, into a mass of distributed data lakes behind a single SQL pane in order to have one place to access your distributed data!
It replies all unanswered Stack Overflow questions with far-fetched answers.
It allows the database to take a ‘walk-about’ through the office, get some coffee, and get the data moving…
Makes all queries in the database use query hints that are really helpful.* You’ll definitely notice a performance impact!
*By really helpful, we mean with(nolock) because it’s a stretch that it would help in a given situation.
Heh… it’s one of the best ways to save money on storage. 😀
The Stretch feature will assist your company statisticians in their jobs to stretch the truth for the growth numbers for each quarter. It stretches the numbers upwards to make the boss and company look good and fills in bad numbers with good ones! It stretches the truth for the sake of advertising and better job outlooks.
Enrolls your database in a goat yoga class.
It converts your database server to a Linux database (based on Debian Stretch).
haha mine says ‘woody’ does that mean i’m out of date?
Its what a database does before it brushes it teeth in the morning.
it lowers the size of each page, so that you have less wasted space, allowing you to do more with less storage needs.
When in lockdown, once a day, click on this option to let your database have some stretching or your database will lose tone and will go slow and you will have loads of performance issue…
Issues undocumented DBCC command “DBCC STRETCH”.
When complete, returns status “RRRRRRRRrrrrrrrrrrrrrr….. Oh yeahhhhh….”
This nifty feature will break your database by hitting the capacity limits of Azure!
It’s a new feature, to use on heavily used databases. It starts an Yoga Session on the data, so they can calm down.
Call Brent …
Just as you would in bread making, as you stretch and kneed your dough, you’re incorporating air your mixture. In this case you’re incorporating air into you’re database. If you then wait for 2 hours, and let you database “rise”, the database icon in SSMS will turn into a loaf of bread icon.
Last time I tried this my Azure subscription was taken down because there was no money left. So I know for sure it’s something like a “donate” button. 😀
It is a brand new foreign-key constraint feature at database level. If you want a database to relate to others you can stretch it and it will be able to reach the related DBs
It is the opposite of shrink… geez I thought everyone knew that.
Your database will get up and walk around for a few minutes, to clear it’s head and get a little exercise. Offers some light performance boosts when perofrmed daily, espeically if it hasn’t been done in several hours. It locks every table for a about 20 – 30 minutes while doing this, so be sure to perform this task during a maintenance window only.
Stretches the disk to increase the amount of usable space.
It gives a chance to DBA to streach the body and relax, sometimes It tickle DBA until he / she laughs.
The product developers got bored and wanted some in-product entertainment so it opens up an old TV ad for a Stretch Armstrong toy.
Stretches your data pages apart so indexes are not required!
Stretch increases the size of the database by a configurable amount by default it is 24%. increasing the size of the Database then makes for less work for the CPU as it does inserts, it does not have to increase the size. It works similar to instant file initialization only after database is established.
Can’t believe what i have read!I mean some of you are DB Professionals but it’s obvious what STRETCH does!!!!!1!!!!You press STRETCH and when you run a query that lasts more than 5 minutes SSMS or Azure data studio shows you exercises and yoga poses (volume up for Indian flute music) for stretching your back from all day sitting on the chair!And you call yourself professionals knowing SQL!!!
It stretches SQL Server’s processing power across all computer CPUs on your entire network without increasing licensing costs, but you can only use it 90 seconds a day.
It plays “Take Me Out to the Ballgame”
Stephen – this is my favorite so far, hahaha. So meta.
Stretches Brent’s free access to the recordings until May 1st.
MM – CLICK IT FAST!
Obviously a trick question. That’s not a button; it’s a menu selection.
Stretch is an OSHA requirement. It shuts down SQL Server for 10 minutes
so all users can get out of their chairs to stretch.
Brian – I laughed out loud. I can just imagine that.
Stretch is for when you are getting low on disk space.
It removed the platters and stretches them so they can hold more data.
Does not work with SSD drives.
Doesn’t do anything itself
– press it and it changes to “your arms out”
– press that changes to “crack your knuckles”
it’s an instruction telling the user what to do before pressing “Take Offline”
– they might be in for a bumpy ride 😉
best be ready to do some quick typing
Creates a brick in the cloud (no updates or deletes)
Of course, it is part of the Agile development pack, in the latest SSMS enhancement.
Stretch makes your queries take longer on purpose…it’s a reverse-turbo button!! This way you have easy improvements to show customers when you uncheck this option!
Kevin – HAHAHA, love it.
It is for stretching out when your back hurts, but for databases
It sets the default filesize growth to 1 TB.
It takes all of your tables and stretches them to other tables. One row per table.
Steve – that sounds efficient, heh heh heh.
It changes the name from StackOverflow to Staaaaaaaaackoverflow
its a partial defrag of the database – guarantees that rows closer to the end of a table are always closer to the end of the underlying file, just not necessarily without any space inbetween. It’s called streatch because sometimes pulling those rows to the end of the file causes the total space assigned to tables to increase.
It sends a text message to that 6′ 11″ guy in the warehouse.
Expands the object explorer to the full width of your SSMS window.
It allows you to Secure T-SQL Reverse-Encoded Table Column Headers
It is of course used to exaggerate the size of the database to trick your infrastructure team that you need more disk space, so that there are times for lengthy procurement processes to procure the additional space.
Interestingly in SQL Server 2008 (not R2), the feature was called “Bloat”.
*None of the above is true!
Strech means Streching. You have to run this task after every SQL Server reboot and every time before SQL Server will start the hard work – for example expensive queries – to avoid SQL Server injuries = database inconsistency 😉
This button makes a random chicken in the world explode.
It increases the distance between rows. In order to “social distance” to protect it from computer viruses.
Robyn – okay, hahaha, seriously, I laughed pretty hard at that one. Nice.
This is the emergency button to call Reed Richards from the Fantastic Four!
Adds some social distancing to the letters in db name in this crazy times. It’s easier to read it too.
It’s a typo.
It should be Stritch and, when clicked, does a rather entertaining Broadway comedy routine, complete with scratchy-voided singing.
I know exactly what this does. It tells the engine to get the most important financial data in the database and “stretch” it so that the Finance and Marketing people can stretch the truth! It’s a great feature that Oracle needs to get on board with.
After your database has workedout very hard with heavy transactions, this option allows to “stretch” it muscles (aka pages) a little bit…!
It lengthens your bones like an Expanse Belter Loader
What the gubmint does with the truth. >:-)
This puts the database into “Uber Auto Manage” mode, allowing you to get out of your chair and go stretch your legs for a bit.
For use after your database skinnydips on a winter day
Increases server flexibility and reduces risk of database injuries prior to exercising a resource-intensive query.
It automatically exaggerates the benefits of the project in the mandate to allow for more pizza and beer.
When run on the stackoverflow database, takes all users that don’t post their error message and stretches them on the rack.
Yes I have an axe to grind.
Writes excuses for you when you’re asked “why is the Database slow.” Aka stretching the truth, but they use the term stretch so only deep tech folks know it. You’re welcome.
It gives it stretch marks like a human being. Microsoft way of showing we are more human like you.
It is the ultimate in performance tuning of course! First it begins by stretching the budget for those SSD disks, and then quickly (using linked servers with nested views and a cursor) stretches the performance of the CPU. After that it begins to work on user expectations, and the theory alternate dimensions to stretch out your next vacation.
Prerequisite to a SNAP command (still in development…)
It lets you increase the size of the database on disk so your SAN and VM admins can’t try to take any unused space away from you, and allows you to ask for more. Sadly, Microsoft never added the complementary “Squish” option into the UI, which then allows you to return the database to it’s original size afterwards…
It makes all your ASCII words extra loooooong! Oh Nooooooo. Means you can show off and say “My database is bigger than yours!”
It does stuff that wasn’t in the requirements document but you saw it and clicked on it anyway.
It stretches the database file extents to allow the files to more easily grow when needed. Kind of like stretching a balloon first before blowing it up allows it to expand quicker.
It allows you to stretch your database to the sky, and then you turn around and wink at your storage team:)
Stretches your budget to the limit ?
I said *wrong* answers only, heh.
It calls DBCC STRETCHFILE behind the scenes. Microsoft implemented this new feature to undo the effects of the DBCC SHRINKFILE command, since they can’t take that feature away.
Your email address will not be published. Required fields are marked *
Replies to my comments
Notify me of followup comments via e-mail. You can also subscribe without commenting.
I make Microsoft SQL Server go faster. I love teaching, travel, and laughing. I live in Iceland with my wife Erika. I teach SQL Server training classes, or if you haven’t got time for the pain, I’m available for consulting too.
Want to advertise here and reach my savvy readers?