Forum Replies Created

Viewing 15 posts - 31 through 45 (of 567 total)

  • RE: RAISERROR Nulls?

    danielfountain (5/29/2014)


    Hey all,

    I have a try catch block.

    <snipped>

    What am i doing wrong to make the raiserror do this?

    Many thanks

    Dan

    Unfortunately, RAISERROR in a CATCH block doesn't work like you...

  • RE: Are the posted questions getting worse?

    SQLRNNR (5/30/2014)


    wolfkillj (5/30/2014)


    jcrawf02 (5/30/2014)


    jasona.work (5/30/2014)


    The impression I've gotten is that they already have a contract with NASA to ferry crew, it's just been waiting for the man-rated capsule to be...

  • RE: Are the posted questions getting worse?

    jcrawf02 (5/30/2014)


    jasona.work (5/30/2014)


    The impression I've gotten is that they already have a contract with NASA to ferry crew, it's just been waiting for the man-rated capsule to be completed and...

  • RE: STintersect with buff

    Eirikur Eiriksson (5/29/2014)


    wolfkillj (5/29/2014)


    Eirikur Eiriksson (5/28/2014)


    Quick thought, if the "signs" are points then I would have thought that the STContains function would be more appropriate.

    😎

    Except that the requirement was to...

  • RE: STintersect with buff

    mickyT (5/28/2014)


    Johnny H (5/28/2014)


    Thank Jason this increased the speed 10 fold

    SELECT s.ID

    FROM v_sign s

    WHERE EXISTS (SELECT 1 FROM dbo.water w WHERE (geography::STGeomFromText(s.geometry.STAsText(), 4326).STBuffer(100).STIntersects(w.geography) = 1)

    Are you able to post up...

  • RE: STintersect with buff

    Johnny H (5/28/2014)


    Thank Jason this increased the speed 10 fold

    SELECT s.ID

    FROM v_sign s

    WHERE EXISTS (SELECT 1 FROM dbo.water w WHERE (geography::STGeomFromText(s.geometry.STAsText(), 4326).STBuffer(100).STIntersects(w.geography) = 1)

    The speed increase most likely comes from...

  • RE: STintersect with buff

    Eirikur Eiriksson (5/28/2014)


    Quick thought, if the "signs" are points then I would have thought that the STContains function would be more appropriate.

    😎

    Except that the requirement was to determine which signs...

  • RE: Catch Block: Variables vs System Functions?

    autoexcrement (5/27/2014)


    I am creating a single stored procedure to log errors from within the CATCH blocks in my code.

    I notice that in most of the code examples I've seen,...

  • RE: Advice sought....populating a DEV copy of the database

    RedBirdOBX (5/28/2014)


    Thanks everyone. After some trail an error, I was able to create a SP that does most of what I want it to. It's a whopper as...

  • RE: STintersect with buff

    Johnny H (5/27/2014)


    Here is what I have tried. Setting GEOMETRY to GEOGRAPHY, then a inner join, I have also tried with a union with the same error results.

    DECLARE @sign...

  • RE: Are the posted questions getting worse?

    J Livingston SQL (5/24/2014)


    Jo Pattyn (5/24/2014)


    Welkom back wolfkillj, could you fix the link to your blog? It points to the thread.

    http://sqlsouth.wordpress.com/2014/05/23/export-xml-from-sql-server-using-bcp/

    Thanks for the temporary fix - I fixed the link...

  • RE: Are the posted questions getting worse?

    Wow - I have been away from the thread for a long time. I've been busy at work with an avalanche of new projects and improvements to existing process. One...

  • RE: Are the posted questions getting worse?

    GilaMonster (3/14/2014)


    wolfkillj (3/14/2014)


    wolfkillj (3/13/2014)


    GilaMonster (3/11/2014)


    Koen Verbeeck (3/11/2014)


    Grant Fritchey (3/11/2014)


    By the gods, people get hung up on the weirdest darned things. They can focus like a laser on stuff that's just...

  • RE: Assistance with Partition-level locking and X lock on UPDSTATS

    I wonder whether this might have something to do with a read-ahead or prefetch operation. I'm testing some theories and will post results later.

  • RE: Really need help with query taking longer after backup!

    william.rees.howells (3/13/2014)


    Hi again,

    I have found out what the problem was. Basically it boils down to me now using CHECKPOINT. I think that the following is what was happening:

    1) INSERT DATA

    2)...

Viewing 15 posts - 31 through 45 (of 567 total)