Viewing 15 posts - 1 through 15 (of 17 total)
Hi Aaron,
I meant to say that given a route, you would have to travel all points listed in the route. So, in the example A -> B, B -> C...
September 27, 2012 at 6:26 am
Dude you're awesome!
The modified queries now works for the scenarios I described.
I will apply the queries to some real data and see how that goes as well as try to...
September 26, 2012 at 10:45 pm
Ok,
To test the scenario that route 1 and route 2 start at the same origin but finish at different desitionations:
insert into #Trips values (1,'ReturnTrip','A','B')
insert into #Trips values (1,'ReturnTrip','B','C')
insert into #Trips...
September 26, 2012 at 9:51 pm
Sorry posted twice, thought I'd lost the 1st reply...
September 26, 2012 at 9:46 pm
There are possibilities I think that it may fail if a return route doesn't exactly retrace the same steps, especially if it is through different way points. That may end...
September 26, 2012 at 9:44 pm
There are possibilities I think that it may fail if a return route doesn't exactly retrace the same steps, especially if it is through different way points. That may end...
September 26, 2012 at 9:28 pm
Wow thanks for the query dwain,
it seems to work beautifully!
I'm just going to play around with some other scenarios that I've found with the data I'm given.
It seems that...
September 26, 2012 at 9:08 pm
Thanks aaron,
Yes I fogot to include a vital column Direction which would indicate whether the journey was an Inbound or an Outbound.
So the code should look like this:
create table test.elogen
(
ID...
September 26, 2012 at 5:46 pm
Thanks Paul, adding HASH to the left outer joins did indeed result in the double bitmap plan and also forces the order of the joins.
Cheers.
January 31, 2012 at 5:58 pm
Well what do you know, the inline string split has resulted in a parallel execution plan!
Here is my query:
SELECT
CASE WHEN Link.ProcessType = 'D' THEN (SELECT ExecutionTime FROM MARSX.dbo.[DelimitedSplit8K](AI.LoadExceptionsFileName, '|')) END...
January 30, 2012 at 5:53 pm
Thanks for the suggestion, but I think that my problem doesn't actually have anything to do with how I've defined my function.
For example, I tried redefinig the ufn as:
ALTER FUNCTION...
January 30, 2012 at 2:22 am
Thanks again Paul for the detailed explanation.
You're exactly right, my problem really had nothing to do with isolation levels and was more to do with the inefficiency of how I...
January 14, 2012 at 9:35 pm
Thanks Paul for your answer and the link.
I guess what I need for my purposes is to set the isolation level to SNAPSHOT since my function will actually be a...
January 10, 2012 at 3:31 am
Hi Paul,
I've just tried your code, and yes it's returning..I missed the BREAK part....
thanks
September 7, 2011 at 6:28 am
Thanks for the suggestions guys,
but I'm wondering with the WHILE 1 = 1 method, wouldn't this mean that once the stored procedure is called, it would never return? So would...
September 7, 2011 at 6:06 am
Viewing 15 posts - 1 through 15 (of 17 total)