Results 1 to 3 of 3

Thread: MS-SQL Server cascading deletes/updates

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    51

    Question

    What is the prefered method to do cascading updates and deletes in a SQL Server database? Are they best done with triggers, stored procedures, or is there some database setting to tell the database to perform cascading deletes over the whole system?

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Not sure about Sql Server 7.0 but in 6.5 if you want cascade deletes you have to write them yourself. Which method should you use to implement? Triggers. They're, ulitmately, faster and more tightly coupled with the data.

  3. #3
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482
    John's right, especially when you're working in a perfect world. Unfortunately, I've found in large multi-user production environments, I more often have to settle for second best and use the stored procedures route instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width