Viewing 15 posts - 3,196 through 3,210 (of 7,614 total)
August 28, 2018 at 1:35 pm
August 28, 2018 at 11:11 am
If you (almost) always query by COLA or ( COLA, COLB ), then cluster the table on ( COLA, COLB ). Then you'll always get a seek with either of those searchesm,...
August 28, 2018 at 9:29 am
Log space will be needed, as always for any mods, but I don't think both tables exist simultaneously unless you're doing an ONLINE rebuild, which you wouldn't do if you...
August 27, 2018 at 11:14 am
August 27, 2018 at 10:53 am
Mode is quite OK to do as long as you make the initial proc just a driver proc: it adjusts param(s) as needed and then calls another, customized proc to...
August 27, 2018 at 10:00 am
I don't think you need extra space. SQL compresses page by page (I'm assuming page compression, as row compression wouldn't save you all that much space). Row compression only would...
August 27, 2018 at 9:51 am
You're welcome. I started the confusion when I stated that assignment of uniquifiers was "completely arbitrary" without clarifying it. I made it sound like the values were random over time. ...
August 24, 2018 at 2:43 pm
August 24, 2018 at 11:55 am
For final prod code, I'd probably make a couple of other minor adjustments to make the code more inherently clear. I'm a firm believer in self-documenting code, including clear variable...
August 24, 2018 at 8:23 am
SQL calls it a "uniquifier", not a "row id". The assignment is completely arbitrary -- and totally meaningless to you. If you're worried about getting "Abigail" Smith returned before "John"...
August 24, 2018 at 8:13 am
There's no need for any tally table nor recursion. A simple mathematical calc is enough. I'm almost sure this is it, although I'm extremely busy and haven't fully tested it...
August 23, 2018 at 4:24 pm
Yes. We need every match from Table_B to Table_A. We need to list every...
August 23, 2018 at 8:01 am
Viewing 15 posts - 3,196 through 3,210 (of 7,614 total)