Viewing 15 posts - 121 through 135 (of 1,244 total)
Few other professions are so clearly led by marketing people. The surgeon, for example, who eyes you up whilst fingering a scalpel doesn't often get his expertise and advice from...
August 15, 2019 at 7:29 pm
Heh... wonder if that table is actually spt_values?
My gut says the two are unrelated. As far as I can tell, spt_values is just an old EAV type lookup table/view...
August 14, 2019 at 2:21 pm
For anyone interested in MS building such a function into T-SQL, please see the following thread. It used to have 278 votes until MS moved the "Connect"...
August 14, 2019 at 12:09 am
I am also amazed at the volume of folks who overuse recursive CTEs. It almost seems that they go out of their way to use them!
They do go out...
August 14, 2019 at 12:03 am
For anyone interested in MS building such a function into T-SQL, please see the following thread. It used to have 278 votes until MS moved the "Connect" system to...
August 13, 2019 at 8:14 pm
No, I'm not saying that at all. "All collies are dogs but not all dogs are collies"... While it is true that all objects with an object_is < 0 are...
August 13, 2019 at 2:42 am
Using "OPTION (USE HINT('FORCE_LEGACY_CARDINALITY_ESTIMATION'))" instead of "OPTION(QUERYTRACEON 9481)" looks like it may be the answer. I need to do more testing before closing the question but I did want to...
August 8, 2019 at 9:27 pm
sys.all_objects should in fact be the UNION ALL of system objects (sys.system_objects... object_id < 0) and user objects (sys.objects... object_id > 0).
If you are seeing something other than this, please...
August 8, 2019 at 4:32 pm
Thanks Jeff,
I don't know that one version has an inherent advantage over the other. I just think it's interesting to see alternate solutions to problems.
August 7, 2019 at 7:07 pm
Jeff,
Kudos on another excellent article. It's always interesting to see your take on these types of functions.
For comparison, here is an altered version of a similar function I created a...
August 7, 2019 at 4:49 pm
Please give this a read and follow the advise on how to post a question.
July 6, 2019 at 9:11 pm
Steve Jones - SSC Editor wrote:I wish we were more like LINQ.
FROM Customers
SELECTThen after the table I could start getting columns easily.
I endorse this message.
Snippets are your friend......
June 25, 2019 at 6:09 pm
Fewest number of bytes so far, as well. If you want to go real short, convert to the first of the month and store it as a DATE....
June 20, 2019 at 4:53 am
You can also use a computed column for as_of_month, there's no need to physically store it again. as_of_date date NOT NULL, as_of_month AS CONVERT(varchar(6), as_of_date, 112), That column...
June 19, 2019 at 8:44 pm
Viewing 15 posts - 121 through 135 (of 1,244 total)