Viewing 15 posts - 2,701 through 2,715 (of 10,144 total)
Sioban Krzywicki (1/21/2015)
January 21, 2015 at 8:41 am
SELECT *
FROM @table t
WHERE EXISTS (SELECT 1 FROM ufn_CSVToTable(@Filter, ',') s WHERE t.csv LIKE '%'+s.String+'%')
SELECT *
FROM @table t
WHERE EXISTS (
SELECT 1 FROM ufn_CSVToTable(@Filter, ',') s1
INNER...
January 21, 2015 at 7:09 am
Bhushan Kulkarni (1/21/2015)
Accept the two parameters as comma separated string.Create a function that will split the comma separated string and returns table.
And use that function in where clause
More or less...
January 21, 2015 at 5:34 am
The execution plans won't be identical because the queries aren't identical.
Use a variable for your date filter and you can use the exact same query (and hence exact same execution...
January 21, 2015 at 2:11 am
Jeff Moden (1/19/2015)
@chris-2,Agreed. You're going with what was given and I'm trying to read minds. 😛
You've been around here for a little longer than I have 😉
January 19, 2015 at 8:27 am
Jeff Moden (1/19/2015)
January 19, 2015 at 7:47 am
richardmgreen1 (1/19/2015)
I might be back for some extra help when I start changing it slightly to add in all my other fields (and quite possibly for an...
January 19, 2015 at 7:31 am
Hi Dan, have a look at the execution plan, the leftmost operator, SELECT. Rightclick to raise the properties tab. Look for something like "Reason for early termination..." and post the...
January 19, 2015 at 7:15 am
Your spec is a little ambiguous and quite tricky to follow. Hopefully this will give you some ideas. iTally is an IBG-style inline tally table which will generate just as...
January 19, 2015 at 6:13 am
This might not be the most efficient way of solving the puzzle, but it does generate the correct results - which I always put before performance or code sophistication:
DECLARE @SAMPLE_DATA...
January 19, 2015 at 2:06 am
GilaMonster (1/16/2015)
Brandie Tarvin (1/16/2015)
GilaMonster (1/15/2015)
Sean Lange (1/15/2015)
EXISTS(select 1
is way faster than just select *. I know Gail has an...
January 16, 2015 at 6:39 am
There will be a performance impact, whether or not it's significant is a different matter - but you could test this with little effort by timing an update to a...
January 15, 2015 at 7:09 am
Note that the trigger you posted will work for single-row inserts only. Something like the following will handle batch inserts/updates:
BEGIN
SET NOCOUNT ON
SET XACT_ABORT ON
SET ARITHABORT ON
IF TRIGGER_NESTLEVEL() >...
January 15, 2015 at 6:33 am
Please post the trigger code.
January 15, 2015 at 6:23 am
Ed Wagner (1/15/2015)
ChrisM@Work (1/15/2015)
BWFC (1/15/2015)
richxs (1/15/2015)
Giraffe DBA (1/14/2015)
SQLRNNR (1/14/2015)
Ed Wagner (1/14/2015)
djj (1/14/2015)
BWFC (1/14/2015)
Ed Wagner (1/14/2015)
Stuart Davies (1/14/2015)
TomThomson (1/13/2015)
Ed Wagner (1/13/2015)
SQLRNNR (1/13/2015)
regexPattern
Match
Point
Edge
Bono
Sonny
Cher
Babe (i've got you ...)
Ruth
Sultan
Swing
Swap
Meet
Potato
January 15, 2015 at 5:41 am
Viewing 15 posts - 2,701 through 2,715 (of 10,144 total)