Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior
Message
De
07/07/2022 07:43:49
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01684625
Message ID:
01684635
Vues:
43
>>Martina
>>
>>Thank you.
>>
>>My question concerns the behavior in .NET.
>>The query runs slowly when i used command type Text, but when I make it a stored procedure, it flies.
>>In both cases I'm using the .NET connection.
>>
>Using Martina's suggestion what happens if you add SET ARITHABORT ON; as a first line in the commandtext ?
>
>If that doesn't work, you can add OPTION (RECOMPILE) at the very end of your query.
Thank you, Naomi.
Since the problem was fixed by using a stored procedure, I won't be going back to t his code.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform