Viewing 15 posts - 556 through 570 (of 3,957 total)
Jeff Moden (9/3/2014)
September 3, 2014 at 11:20 pm
Erikur,
Great work with that test harness, although I'd say your statement about "doing a little testing" is a bit of an understatement.
Even though the results didn't come out in my...
September 3, 2014 at 6:11 pm
Jeff Moden (9/3/2014)
gbritton1 (9/3/2014)
select * from dbo.[DelimitedSplit8K](' ',...
September 3, 2014 at 6:09 pm
Sounds like you want to add a foreign key relationship between the Country column in your CustomerOrders table to the country code in your Countries table.
September 2, 2014 at 11:49 pm
There is also this variant that, by using a LEFT JOIN instead of the UNION ALL, reduces the scan count to 2.
WITH FancyWayToFindGaps AS
(
SELECT palstkid, extractdate=DATEADD(day,...
September 2, 2014 at 7:41 pm
I would be curious how this solution stacks up performance-wise to the others, although I don't have time at the moment to check.
WITH FancyWayToFindGaps AS
(
SELECT palstkid,...
September 2, 2014 at 7:20 pm
jeff.born (9/2/2014)
I have table of standardized data that I'm merging into from an Import table.
This import...
September 2, 2014 at 6:38 pm
Lynn Pettis (9/2/2014)
Sorry, pet peeve time. Semicolons are statement terminators not statement begininators.
Here, here! This terminator policeman once set me straight.
September 2, 2014 at 6:33 pm
GilaMonster (9/2/2014)
"The inserted table only contains the rows inserted into the table. I need rows from other tables as well. Hence I can't use a set-based solution"Err.. ok...
Bwahaha! Second...
September 2, 2014 at 6:27 pm
John Mitchell-245523 (9/2/2014)
September 2, 2014 at 6:04 pm
kzhen (8/22/2014)
...you should check out this article. http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
There are some serious performance issues for this type of...
September 2, 2014 at 4:13 am
Lot's of folks like to write about this sort of stuff, mostly re-hashing the same old, same old.
Me, I prefer to rely on the results posted by a well-known SQL...
September 2, 2014 at 4:07 am
I think you should re-think your approach and write it as a dynamic search SP:
How to Design, Build and Test a Dynamic Search Stored Procedure [/url]
The result will be better...
September 2, 2014 at 3:53 am
I think you might want to take a look at the following article, which compares various alternative solutions to this problem along with their performance characteristics:
September 1, 2014 at 7:25 pm
Lynn Pettis (9/1/2014)
dwain.c (9/1/2014)
DECLARE @system_log TABLE(
PK_ID int PRIMARY KEY
,Sequence_ID int null
)
INSERT @system_log(
PK_ID
,Sequence_ID
)VALUES
(1035590, 35587),
(1035589, NULL),
(1035586,...
September 1, 2014 at 7:17 pm
Viewing 15 posts - 556 through 570 (of 3,957 total)