Microsoft Edge Essayez Microsoft Edge un navigateur rapide et sécurisé conçu pour Windows 10 Commencer

Passer directement au contenu principal
Microsoft
Aide et support Microsoft
  • Office
  • Windows
  • Surface
  • Xbox
  • Aubaines
  • Assistance
      • Applications Windows
      • OneDrive
      • Outlook
      • Skype
      • OneNote
      • PC et tablettes
      • Accessoires
      • Réalité virtuelle et mixte
      • Microsoft HoloLens
      • Xbox et jeux
      • Jeux PC
      • Jeux pour Windows
      • Films et émissions télévisées
      • Microsoft Azure
      • Microsoft Dynamics 365
      • Microsoft 365
      • Plateforme infonuagique
      • Solutions pour les entreprises
      • Plateforme de données
      • .NET
      • Visual Studio
      • Développer des applications Windows
      • Documents
      • Téléchargements gratuits et sécurité
      • Éducation
      • Boutiques
      • Cartes-cadeaux
    • Afficher tout
    0
    Se connecter
    Aide et support Microsoft

    FIX: Data type conversion error due to late evaluation of a filter predicate in a query involving a column store index in SQL Server 2016

    Contenu fourni par Microsoft

    Contenu fourni par Microsoft

    S’applique à : SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise CoreSQL Server 2016 StandardMicrosoft SQL Server 2016 Service Pack 1 Plus


    Symptoms


    Consider the following scenario:

    • You use a database with the compatibility level set to 130 in Microsoft SQL Server 2016.
    • You execute a query that accesses a column store index and a row store index or a heap, and includes a filter predicate (WHERE clause).
    In this scenario, SQL Server will not be able to push the filter predicate closer to the data source operator (table or index scan or seek). This may cause suboptimal query performance.

    In addition, if the query uses an expression (such as type conversion) where its correctness depends on filtered data (for example, a char table column is converted to int, but only a subset of values contain a valid int representation, and this subset is identified by the filter predicate), then the query may fail with a data conversion error that resembles one of the following:
    Msg 245, Level 16, State 1, Line 20
    Conversion failed when converting the varchar value '0.5' to data type int.

    Msg 8114, Level 16, State 5, Line 34
    Error converting data type varchar to bigint.

    Resolution


    This issue is fixed in the following cumulative update for SQL Server:

           Cumulative Update 2 for SQL Server 2016 SP1

    Note You must enable query optimizer hotfixes in order for this fix to take effect.

    You can enable the query optimizer hotfixes by using one of the following options: trace flag 4199, Database Scoped Configuration setting QUERY_OPTIMIZER_HOTFIXES=ON (available in SQL Server 2016 and later), or USE_HINT query option 'ENABLE_QUERY_OPTIMIZER_HOTFIXES' (available in SQL Server 2016 SP1 and later).

    About cumulative updates for SQL Server

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

    Latest cumulative update for SQL Server 2016

     

    Status


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

    References


    Learn about the terminology that Microsoft uses to describe software updates.

    Dernière mise à jour : 20 mars 2017
    • Courriel
    • Imprimer
    Merci! Vos commentaires nous aideront à améliorer l’expérience de soutien.

    Support technique

    Support technique

    • Trouver les téléchargements
    • Prise en charge des comptes
    • Liste des produits pris en charge
    • Politique de support des produits

    Sécurité

    Sécurité

    • Sécurité et Vie privée
    • Télécharger Security Essentials
    • Outil de suppression de logiciels malveillants

    Contactez-nous

    Contactez-nous

    • Signaler un hameçonnage concernant le support
    • Communiquer avec Aide et support Microsoft
    • Questions relatives à la confidentialité
    • Rechercher des adresses Microsoft dans le monde entier
    Ce site dans d'autres pays/régions
    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
    Ελλάδα - Ελληνικά
    България - Български
    Казахстан - Русский
    Россия - Русский
    Україна - Українська
    ישראל - עברית
    الإمارات العربية المتحدة - العربية
    المملكة العربية السعودية - العربية
    مصر - العربية
    भारत - हिंदी
    ไทย - ไทย
    中国 - 简体中文
    台灣 - 繁體中文
    日本 - 日本語
    香港特別行政區 - 繁體中文
    대한민국 - 한국어
    Français (Canada)
    • Conditions d’utilisation
    • Confidentialité et cookies
    • Marques de commerce
    • © Microsoft 2018