a couple clickable xml columns that give you the variable, variable data type, and column of any predicates that had a seek effecting implicit conversion
and one that gives you the stored proc as it was called with compiled values
The answer above is the horrible caricature of this Paul Randal's article:
Why you should not shrink your data files
In his article Paul suggests:
The method I like to recommend is as follows:
Create a new filegroup
Move all affected tables and indexes into the new filegroup using ...
@hot2use I empathise, and yes it is an edge case, but there's just enough of an answer to make it NNAA. Other flags might well be accepted (and indeed, have been).
I have no idea why people have upvoted that answer, but there you go.
I'm teaching a class in which I want to demonstrate to my students that queries are not guaranteed to return results in a specific order without an explicit ORDER BY. I've observed that SQL Server seems to return ordered results even when ORDER BY is not present in the query. This is a problem be...
I would suggest making the answer to the question asked a more prominent part of this answer. You are welcome to briefly critique another answer as well, but that should not form 95% of your answer. If you could word things a little more constructively, that would be appreciated as well. Thank you. — Paul White ♦13 secs ago
I need to clear up what I mean by order here. I am simply asking about what order the data is fetched in.
If I simply SELECT * FROM table; in SQL Server without an ORDER BY clause, I find that the results always come in the same order. That certainly is not the case with some other database serv...
@sp_BlitzErik We all start somewhere. My first "real" BI database I worked on had daily partitions bigger than the entire data quantity involved in my first SQL Server role
Admittedly, it was SQL Server 2008-ish vs SQL Server 6.5 in 1998. I tend to avoid BI work if possible
We all know that a simple statement such as:
SELECT * FROM stuff;
should not produce an ordered result. However, when I try to demonstrate this, it always comes out in primary key order.
Moreover a statement such as:
SELECT thing,whatever FROM stuff
GROUP BY thing,whatever;
always appears ...
why do you think it is that microsoft has TSQLUserDefinedFunctionsNotParallelizable as a non parallel plan reason, but scalar functions only ever seem to generate CouldNotGenerateValidParallelPlan?
don't think i've ever practically seen anything other than that or MaxDOPSetToOne
@sp_BlitzErik random guess: different kinds of UDF. Inline TVF (macro), multi-statement TVF (resultset back). Scalar (single value), CLR (clearly not parallel capable). With and without data access for all
@JoeObbish For Ordered:False, the storage engine can decide at runtime on any convenient access method, it might be an ordered b-tree access, an unordered access of any type, or an allocation-ordered scan.
The main distinction between Ordered:True and Ordered:False is the guarantees required by the optimizer for correct operation. Not all the details are exposed in plans.
For example, prefetching could work differently for an ordered vs unordered btree access.
They're called Identicons.
If you do not upload your own image, then Stack Exchange uses Gravatar and specifies Identicons as the default image:
Gravatar implementor's guide
How the URL is constructed, with:
When you're not registered (when Stack Exchange does not know your email address), t...
I'm running a database which is randomly spiking to 300% to 150%. It's Linode 8 GB RAM, 4CPU package
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 10.1.23-MariaDB-1~xenial
[OK] Op...
I have a database with a lot of users, all of them with full read privileges on all the tables but not all the users are reading all the tables. I want to have each user having as little privileges as they need. Each user belongs to a different large legacy application for which auditing the code...
it's not listed as a constraint in the sede, but maybe @bluefeet or @jcolebrand can tell us if there's a constraint or some other magic to prevent it from going below 1.
Lets say User1 has access to both Db1 and Db2.
Where the DB1 and Db2 reside in the same SQL Server box.
Now with the following syntax this user can access tables from other database:
SELECT *
FROM [database].[schema].[table]
I have a security requirement that I am working on that should r...
but SQL Saturday is always planned the weekend before dataminds, which I believe covers a lot of expenses if you look at the speaker list and they have precons too
Aaron was here 2 or 3 years ago and is here again this year
Updated timeline:
Done changes rolled out on meta.se and to Mods on all sites on Monday (9/18)
Assuming no significant issues are discovered we will roll out to all sites within the next couple weeks
I'm the new product manager for the DAG team. I’m excited to announce that the...
@JackDouglas because when it was first announced the TL gave a lot of feedback on it, so we made the decision to roll it out to the mods first to work out any bugs and/or make changes that would work better for you special folks. :)