Viewing 15 posts - 3,511 through 3,525 (of 3,957 total)
Jeff Moden (10/24/2010)
May 24, 2012 at 6:42 pm
Thanks Mark and Paul for the suggestions.
The case I came up with is for a training session so I'm trying to illustrate a point. I understand how...
May 24, 2012 at 5:22 am
Lynn Pettis (5/23/2012)
Jeff Moden (5/23/2012)
dwain.c (5/23/2012)
Are those results ordered as #1 mine, #2 ColdCoffee...
May 23, 2012 at 10:36 pm
Jeff Moden (5/23/2012)
65,000 months is more than 5,416 years.
You're right. That's what I get for going from memory... they say that's the first to go.
Thanks for the math lesson!
May 23, 2012 at 10:15 pm
Chrissy321 (5/23/2012)
Please allow me to ask a question which will clearly demonstrate I am still trying to understand the solution.
What's...
May 23, 2012 at 10:05 pm
Jeff Moden (5/23/2012)
May 23, 2012 at 10:01 pm
So let's begin the campaign!
Here's a test harness to compare ColdCoffee's submission vs. mine over roughly 65,000 rows. ColdCoffee will need to excuse me but I didn't have a...
May 23, 2012 at 9:22 pm
Jeff Moden (5/23/2012)
dwain.c (5/23/2012)
Wonder which performs better? 🙂DWAIN FOR PRESIDENT! 😀
Shoot man! Talk is cheap!
Saying and doing are two different things.
In this thread: http://www.sqlservercentral.com/Forums/Topic1303878-392-2.aspx#bm1304951 I dived right in...
May 23, 2012 at 8:51 pm
ColdCoffee (5/23/2012)
dwain.c (5/23/2012)
Chrissy,Yes you do need a Tally table, but I don't think you need that many CROSS APPLYs.
Dwain, if you watch closely, those CROSS APPLYs are not on Tally...
May 23, 2012 at 8:03 pm
Chrissy,
Yes you do need a Tally table, but I don't think you need that many CROSS APPLYs.
CREATE TABLE #Companies (Company varchar(1), StartDate datetime)
INSERT INTO #Companies
SELECT 'A',' 4/3/2009' UNION
SELECT 'B',' 3/31/2010'...
May 23, 2012 at 7:07 pm
Lynn Pettis (5/23/2012)
I think that is because I modified the OPs original code. This is the function missing probably: dbo.Validate_2_DelimitedFields_id. Is the the split function the OP was...
May 23, 2012 at 6:29 pm
Jeff Moden (5/23/2012)
dwain.c (5/22/2012)
Jeff Moden (5/22/2012)
It's all going to suck for performance. Don't store comma separated data in a database. Split the data out and store it correctly.
If...
May 23, 2012 at 7:48 am
I was curious how a TVF would compare performance-wise to a SVF for this solution, so I built the following two functions cobbled together from examples provided. Sorry Lynn,...
May 23, 2012 at 7:42 am
GilaMonster (5/23/2012)
dwain.c (5/22/2012)
Stefan Krzywicki (5/22/2012)
Lynn Pettis (5/22/2012)
If people would just format their code they could figure out some of their own problems. Geez.
Many should format it all at once,...
May 23, 2012 at 3:31 am
Lynn Pettis (5/23/2012)
CREATE FUNCTION dbo.itvfn_UpdatedProcedureLocation
(
@Additional_Procedure as varchar(max),
@Additional_Procedure_Location as varchar(max)
)
RETURNS TABLE WITH SCHEMABINDING
AS RETURN (
SELECT STUFF((SELECT ',' +
...
May 23, 2012 at 12:41 am
Viewing 15 posts - 3,511 through 3,525 (of 3,957 total)