Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going parameterized causes problem
Message
De
30/09/2008 15:27:08
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01351844
Message ID:
01351892
Vues:
28
>What is the datatype of Client.Name? What are your indexes on client? Have you looked at the query plan? Is it doing index seeks and index scans vs table scans?

Client.Name is Char(20). Client.Name is indexed.

>Update: Also SQLServer, like VFP, can not optimize a LIKE query if it starts with non-static text: %x can not be optimized with an index. x% can be optimized if you have a proper index on the column.

The value entered starts with a character. But, one thing for sure, SQL Server is going non optimized. That is why it brings the server down at every SQL searches of this type.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform