Ruka uende kwenye maudhui kuu
Microsoft
Auni ya Microsoft
  • Windows
  • Surface
  • Xbox
      • Outlook
    • PCs & Devices
    • Entertainment
    • Business
      • .NET
    • Other
    Ingia
    Auni ya Microsoft

    FIX: AFTER DELETE triggers occur in the wrong order in the ON DELETE CASCADE action chain in SQL Server 2014 or 2016

    Maudhui yanayotolewa na Microsoft

    Maudhui yanayotolewa na Microsoft

    Hutumika kwa: SQL Server 2014 DeveloperSQL Server 2014 EnterpriseSQL Server 2014 Enterprise CoreSQL Server 2014 StandardSQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise CoreSQL Server 2016 StandardMicrosoft SQL Server 2016 Service Pack 1Microsoft SQL Server 2014 Service Pack 2 Zaidi


    Symptoms


    Consider the following scenario:
    • In SQL Server 2014 or 2016, you have several tables, each of which has a PRIMARY KEY constraint specified.
    • You create a cascading chain for those tables by using the FOREIGN KEY constraint together with the ON DELETE CASCADE action.
    • You create an AFTER DELETE trigger for each table.
    • You delete a row from the parent table. This triggers the AFTER DELETE triggers and the ON DELETE CASCADE action chain.
    In this scenario, the triggers may occur in the wrong order.
     

    Resolution


    This issue is fixed in the following cumulative updates for SQL Server:
     
      Cumulative Update 5 for SQL Server 2016 RTM
     
      Cumulative Update 2 for SQL Server 2016 SP1
     
      Cumulative Update 5 for SQL Server 2014 SP2
     
      Cumulative Update 11 for SQL Server 2014 Service Pack 1

     

    About cumulative updates for SQL Server

    Each new cumulative update for SQL Server contains all the hotfixes and security fixes that were included in the previous cumulative update. Check out the latest cumulative updates for SQL Server:

    Latest cumulative update for SQL Server 2016

    Latest cumulative updates for SQL Server 2014

    Status


    Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

    References


    Cascading Referential Integrity Constraints

    Learn about the terminology Microsoft uses to describe software updates.


    Ilisasishwa Mwisho: 17 Apr 2017
    • Barua pepe
    • Chapisha
    Asante! Maoni yako yatatusaidia kuboresha uzoefu wa usaidizi.

    Support

    Support

    • Vipakualiwa vya mwisho
    • Account support
    • Supported products list
    • Microsoft Lifecycle Policy

    Security

    Security

    • Safety & Security Center
    • Download Security Essentials
    • Malicious Software Removal Tool

    Contact us

    Contact us

    • Wasiliana na Auni ya Microsoft
    • Privacy questions
    • Locate Microsoft addresses worldwide
    This site in other countries/regions
    Algérie - Français
    Argentina - Español
    Australia - English
    Belgique - Français
    België - Nederlands
    Bolivia - Español
    Bosna i Hercegovina - Hrvatski
    Brasil - Português
    Canada - English
    Canada - Français
    Chile - Español
    Colombia - Español
    Costa Rica - Español
    Crna Gora - Srpski
    Danmark - Dansk
    Deutschland - Deutsch
    Dominican Republic - Español
    Ecuador - Español
    Eesti - Eesti
    El Salvador - Español
    España - Español
    Estados Unidos - Español
    France - Français
    Guatemala - Español
    Hong Kong SAR - English
    Hrvatska - Hrvatski
    India - English
    Indonesia (Bahasa) - Bahasa
    Ireland - English
    Italia - Italiano
    Latvija - Latviešu
    Lietuva - Lietuvių
    Luxembourg - Français
    Magyarország - Magyar
    Malaysia - English
    Maroc - Français
    México - Español
    Nederland - Nederlands
    New Zealand - English
    Norge - Bokmål
    Panamá - Español
    Paraguay - Español
    Perú - Español
    Philippines - English
    Polska - Polski
    Portugal - Português
    Puerto Rico - Español
    România - Română
    Schweiz - Deutsch
    Singapore - English
    Slovenija - Slovenščina
    Slovensko - Slovenčina
    South Africa - English
    Srbija - Srpski
    Suisse - Français
    Suomi - Suomi
    Sverige - Svenska
    Tunisie - Français
    Türkiye - Türkçe
    United Kingdom - English
    United States - English
    Uruguay - Español
    Venezuela - Español
    Việt Nam - Tiếng việt
    Ísland - Íslenska
    Österreich - Deutsch
    Česká Republika - Čeština
    Ελλάδα - Ελληνικά
    България - Български
    Казахстан - Русский
    Россия - Русский
    Україна - Українська
    ישראל - עברית
    الإمارات العربية المتحدة - العربية
    المملكة العربية السعودية - العربية
    مصر - العربية
    भारत - हिंदी
    ไทย - ไทย
    中国 - 简体中文
    台灣 - 繁體中文
    日本 - 日本語
    香港特別行政區 - 繁體中文
    대한민국 - 한국어
    Kiswahili (Kenya)
    • Terms of use
    • Privacy & cookies
    • Trademarks
    • © Microsoft 2018
    ERROR: at System.Diagnostics.Process.Kill() at Microsoft.Support.SEOInfrastructureService.PhantomJS.PhantomJSRunner.WaitForExit(Process process, Int32 waitTime, StringBuilder dataBuilder, Boolean isTotalProcessTimeout)New URL: about:blank