Forum Replies Created

Viewing 15 posts - 106 through 120 (of 476 total)

  • RE: STintersect with buff

    Eirikur Eiriksson (5/26/2014)


    This should get you started

    😎

    /* convert geometry to geography */

    DECLARE @GEO1 GEOMETRY = geometry::STGeomFromText('POINT (-122.358 47.652)',0);

    DECLARE @GEOG GEOGRAPHY = geography::Point(@GEO1.STY, @GEO1.STX, 4326)

    /* Geography shape/poligon */

    DECLARE @g geography...

  • RE: STintersect with buff

    Hi Johnny

    Unfortunately I think you are going to have some issues here. By there nature Geometry and Geography don't really play nice together. Geometry is designed for a...

  • RE: PAE Overhead

    Hi Lynn

    For a start I am no expert on these things.

    I couldn't find anything overly specific regarding this, however given the amount of times I saw that using the /3GB...

  • RE: Count the number of overlapping dateranges

    So if I'm understanding this correctly, you would like the maximum occupancy at any point in the trip rather than the occupancy at the start of the trip?

    Here's a revised...

  • RE: Count the number of overlapping dateranges

    Hi

    Here's how I would do it, however there is likely to be better ways:-)

    It doesn't return the expected results that you have posted, but they don't match the rules you...

  • RE: identifying different patterns

    Abhijit More (5/22/2014)


    thanks guys you saved me!

    addition to this I am also searching how many times the word has been repeated within the same column

    below is the script

    ;WITH

    CTE

    AS(SELECTdistinct pattern

    FROM...

  • RE: identifying different patterns

    Thanks Alan :blush: and then I see my spelling mistake 🙂

  • RE: identifying different patterns

    Hi

    Here's another method using the same splitter and with the same conditions as Alan's. I thought a cube may give you the results you need

    declare @string varchar(500) = 'Carborator...

  • RE: calculating elapsed time between datetimes for travel

    Hi

    Dwain did an article on Departures and Arrivals[/url], which if I remember correctly discussed the issues of calculating elapsed time between time zones, including daylight savings time, date lines etc.

    Micky

  • RE: Flip two words

    Luis Cazares (5/14/2014)


    mickyT (5/14/2014)


    However having said that, this could be another way of attacking the problem

    Until you find that Gordon Abraham and Abraham Gordon (or any other combination of names)...

  • RE: Flip two words

    Thanks Sean I'll have to remember that.

  • RE: Flip two words

    Hi

    I just cringe at the idea of joining on names in the first place. Having a reasonably common name I can see all sorts of problems and have...

  • RE: Stored procedure runs slow when executed by more than 40 users

    You'll need to provide quite a bit more information before you will get any meaningful replies I suspect. My questions would be along the lines of:

    Where is the spatial...

  • RE: Complicated Case

    Luis Cazares (5/9/2014)


    From what I can understand, you're trying to limit the upper value of type 1 to 24 and types 2 and 3 to 48.

    This should do the trick.

    Case...

  • RE: Complicated Case

    Sorry ... of course we should ... I'll fix it up.

Viewing 15 posts - 106 through 120 (of 476 total)