Viewing 15 posts - 3,196 through 3,210 (of 7,609 total)
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
August 23, 2018 at 7:47 am
August 22, 2018 at 12:26 pm
A standard "AFTER" trigger will work. Keep in mind that the trigger does not have to be "all or nothing": it can let good INSERTs/UPDATEs apply and only reverse the...
August 22, 2018 at 10:56 am
August 22, 2018 at 9:38 am
Whether you use a single Tag table or not, a trigger would still be much easier than a constraint. Why do you not want to even consider a trigger?
August 21, 2018 at 2:26 pm
Viewing 15 posts - 3,196 through 3,210 (of 7,609 total)