Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going parameterized causes problem
Message
From
30/09/2008 15:27:08
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01351844
Message ID:
01351892
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform