inserted / deleted tables

  • From what i understand, inserted/deleted tables never inherit "real table's" PRIMARY KEY, does anyone knows how come?

    It makes standard inserted/deleted-queries quite slow...

  • inserted and deleted are simply pseudo-tables materialised from the transaction log records. SQL doesn't look at the table they're based off (except for data types and column names), so they have no other structures 9pk, index, foreign key, etc)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Oh ok, that clears things up. Thanks!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply