Forum Replies Created

Viewing 15 posts - 2,266 through 2,280 (of 6,486 total)

  • RE: NATURAL JOIN

    Actually - if I remember correctly, a "natural join" is what you get when using some of the newer join commands like INTERSECT or EXCEPT. There isn't a specific...

  • RE: Nested Transactions - Best Practice

    Sorry - I did in fact mean Instead of (since they can be made to implement like a BEFORE sorta like).

    I don't let tables get updated ad-hoc, so I can't...

  • RE: Nested Transactions - Best Practice

    Adam Hardy (11/11/2008)


    Guys, your making me suck eggs here,

    Yes data integrity tasks on the most part can be modelled with PKs and FKs. Those that can't, can be modelled with...

  • RE: ORDER BY in INSERT INTO, how is it done?

    I can confirm that the identity order is definitely that imposed by the ORDER by during the insert. And since the autoincrement (or identity) column is the primary key,...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    The problem I'm seeing is that if you simply exit the proc and term the batch, you now have an orphan, uncomittable transaction. This path then leads to the...

  • RE: Identity Insert Skips records

    krayknot (11/10/2008)


    There must be a flaw i nthe web app code. ID field cannot skips its sequence

    Actually - that's not at all the case. There are many ways gaps...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    rbarryyoung (11/10/2008)


    Matt Miller (11/10/2008)


    Or - use a WAITFOR with a Service Broker Group conversation handle....No loop.

    OMG, you are killing me here Matt! I am using Service Broker with WAITFOR,...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    rbarryyoung (11/10/2008)


    Matt Miller (11/10/2008)


    A TRY/CATCH in the calling context will deal with it. As long as you deal with it before the end of the batch you should be...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    Or - use a WAITFOR with a Service Broker Group conversation handle....No loop.

    The initial catch just suppresses the error (it didn't abort the trx at all). you just have...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    This may not be ideal - but you could set up a DB version of a dead man's switch. That is - set up a WHILE loop with a...

  • RE: How to Suppress Missing Commit or Rollback Errors?

    A TRY/CATCH in the calling context will deal with it. As long as you deal with it before the end of the batch you should be okay.....

    begin try

    exec barry

    END...

  • RE: Nested Transactions - Best Practice

    Well - I personally try to avoid nesting my transactions (since ultimately only the outer one "counts"), but that being said - if I'm worried about scoping and knowing what's...

  • RE: Storing Negative Numbers

    This would bring out the old Bastard DBA from Hell in me. Just encrypt all of the views and all outputs from the DB, calling it a new SOX...

  • RE: There must be a better way

    I know it's not always possible - but putting the thousand separators into numbers is a UI function, so it's usually best ot leave that up to the UI to...

  • RE: The Reverse Optimization Challenge #1

    This sounds like fun.

    I'll see your Hints Hell, and I'll raise you a Windowed Aggregate function with a misapplied distinct:

    select distinct * from

    (

    SELECT CompanyName, OrderDate, ProductName, OD.UnitPrice,...

Viewing 15 posts - 2,266 through 2,280 (of 6,486 total)