Forum Replies Created

Viewing 15 posts - 1 through 15 (of 69 total)

  • RE: Quick RAID tutorial

    hahahahaha

    now, this is clear tutorial!

    conceptually ok =)

  • RE: A nice way to start the week

    I got 974.6 the second time... since then, no inch more... Call me Grinch, but God, I love to kick Santa!!

    =)

  • RE: Worst Practices - Part 1 of a Very Long Series!

    Hungarian Notation is critical in long codes. My guess is, this should not be the case in set-oriented store procedures: fewer vars. So, as long as no one takes...

  • RE: Worst Practices - Objects Not Owned by DBO

    I agree. The second best thing is to use the same owner if dbo is not possible (some peculiar security reason) and stick to it.

    Keep it simple if possible.

  • RE: Worst Practices - Not Using Primary Keys and Clustered Indexes

    Do not agree on cluster index; do agree on identity primary key, as a starting point.

    Also it's much easier (and this argument was not included in you article) to have...

  • RE: Transaction/ Lock Question

    Sorry my mistake, you need both in the first case!

    A HOLDLOCK (also know as SERIALIZABLE) is a proper lock. And UPDLOCK is also correct; you also need an Exclusive Lock,...

  • RE: Another cursor conversion...

    A sub query in a EXISTS does not return rows, so the columns list is not relevant. It's just a syntax issue. That’s not the case with the IN case...

  • RE: Query performance problem

    The last person needs aditional resources dynamically assigned by the server: locks for example.

  • RE: Another cursor conversion...

    I preffer,

    DELETE FROM PARTY_COMMENT WHERE exists

    (SELECT * FROM PARTY WHERE PARTY.CORRESPONDENCE_ID = @corrid and

    PARTY.PARTY_ID = PARTY_COMMENT.PARTY_ID

    )

    DELETE FROM PHONE WHERE exists

    (SELECT * FROM PARTY WHERE PARTY.CORRESPONDENCE_ID = @corrid and

    PARTY.PARTY_ID...

  • RE: Extended challenge for everyone - Answer

    This is one of the most interesting topics I've read so far. Thanks Remi!!!.

    Sorry I'd missed the original challenge...

  • RE: date time query

    Be sure about the datetime format, even if you read in a string, you should (pre) agree, the valid date(s) format(s).

    If it differs from the host default datetime format,...

  • RE: Transaction/ Lock Question

    wow! It will work because you are blocking ALL the Table1. A HOLDLOCK would be enough. Your COMMIT/ROLLBACK will release all locks.

    For my personal taste, I like identity cols, even...

  • RE: Please give me a replacement for a Cursor

    But even then, maybe a TOP n and a loop over a result set... even using a temp with an identity col and just the primary keys (and not all...

  • RE: Retriving host IP Address via T-SQL

    Prefer and IPConfig solution, since you won't depend of a proper sql config. @@servername may not have your server name, for instance.

  • RE: Simple Syntax Problem

    Just SELECT, no (SELECT ... ) (a former Oracle kid?):

    INSERT INTO #SingleHolders

    (PolicyHolder, CorrespondenceClient)

    SELECT DISTINCT PolicyHolder1, ISNull(CorrespondenceClient, 0)

    FROM #PolicyList

    WHERE PolicyHolder2 IS Null

    ORDER BY PolicyHolder1, ISNull(CorrespondenceClient, 0)

    And yes, sorting according to the...

Viewing 15 posts - 1 through 15 (of 69 total)